mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:21:10 +02:00
fix(manacore-web): fix Docker entrypoint path for config.json
The entrypoint was trying to write to /app/build/client/config.json with an absolute path, but since WORKDIR is /app/apps/manacore/apps/web, it should use relative paths instead. Changes: - Use relative path 'build/client/config.json' instead of '/app/build/client/config.json' - Add 'mkdir -p build/client' to ensure directory exists - Update cat command to use relative path This fixes the "nonexistent directory" error causing manacore-web to crash in staging environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5c594a4b23
commit
9b55f10c28
1 changed files with 5 additions and 2 deletions
|
|
@ -15,8 +15,11 @@ CALENDAR_API_URL=${CALENDAR_API_URL:-"http://localhost:3016"}
|
|||
CLOCK_API_URL=${CLOCK_API_URL:-"http://localhost:3017"}
|
||||
CONTACTS_API_URL=${CONTACTS_API_URL:-"http://localhost:3015"}
|
||||
|
||||
# Ensure the directory exists (it should from the build, but be safe)
|
||||
mkdir -p build/client
|
||||
|
||||
# Generate config.json from template
|
||||
cat > /app/build/client/config.json <<EOF
|
||||
cat > build/client/config.json <<EOF
|
||||
{
|
||||
"API_BASE_URL": "${API_BASE_URL}",
|
||||
"AUTH_URL": "${AUTH_URL}",
|
||||
|
|
@ -28,7 +31,7 @@ cat > /app/build/client/config.json <<EOF
|
|||
EOF
|
||||
|
||||
echo "✅ Runtime configuration generated:"
|
||||
cat /app/build/client/config.json
|
||||
cat build/client/config.json
|
||||
|
||||
echo ""
|
||||
echo "🚀 Starting Node server..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue