Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions deployments/aio/community/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ COPY --from=space-img /app /app/space
COPY --from=admin-img /app /app/admin
COPY --from=live-img /app /app/live

RUN rm -rf /app/web/web/.next/cache && \
rm -rf /app/space/space/.next/cache
RUN rm -rf /app/web/apps/web/.next/cache && \
rm -rf /app/space/apps/space/.next/cache && \
rm -rf /app/admin/apps/admin/.next/cache

COPY --from=proxy-img /usr/bin/caddy /usr/bin/caddy
COPY dist/Caddyfile /app/proxy/Caddyfile
Expand Down
8 changes: 4 additions & 4 deletions deployments/aio/community/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ priority=10


[program:web]
command=sh -c "node /app/web/web/server.js"
command=sh -c "node /app/web/apps/web/server.js"
autostart=true
autorestart=true
stdout_logfile=/app/logs/access/web.log
Expand All @@ -30,7 +30,7 @@ environment=PORT=3001,HOSTNAME=0.0.0.0
priority=15

[program:space]
command=sh -c "node /app/space/space/server.js"
command=sh -c "node /app/space/apps/space/server.js"
autostart=true
autorestart=true
stdout_logfile=/app/logs/access/space.log
Expand All @@ -42,7 +42,7 @@ environment=PORT=3002,HOSTNAME=0.0.0.0
priority=15

[program:admin]
command=sh -c "node /app/admin/admin/server.js"
command=sh -c "node /app/admin/apps/admin/server.js"
autostart=true
autorestart=true
stdout_logfile=/app/logs/access/admin.log
Expand Down Expand Up @@ -97,7 +97,7 @@ priority=20

[program:live]
directory=/app/live
command=sh -c "node live/dist/start.js live"
command=sh -c "node live/server.js"
autostart=true
Comment on lines 99 to 101
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Path very likely wrong – duplicated live/ segment

With directory=/app/live, node live/server.js resolves to /app/live/live/server.js, which probably does not exist.

-command=sh -c "node live/server.js"
+command=sh -c "node server.js"

Fix before this hits production.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
directory=/app/live
command=sh -c "node live/dist/start.js live"
command=sh -c "node live/server.js"
autostart=true
directory=/app/live
command=sh -c "node server.js"
autostart=true
🤖 Prompt for AI Agents
In deployments/aio/community/supervisor.conf around lines 99 to 101, the command
path includes a duplicated 'live/' segment causing it to resolve incorrectly to
/app/live/live/server.js. To fix this, update the command to run 'node
server.js' instead of 'node live/server.js' so it correctly references the file
relative to the specified directory /app/live.

autorestart=true
stdout_logfile=/app/logs/access/live.log
Expand Down