From 43483558683be62b39d72cc290d7d886f779141f Mon Sep 17 00:00:00 2001 From: Kilu Date: Sun, 30 Jun 2024 15:47:30 +0800 Subject: [PATCH] fix: deploy --- frontend/appflowy_web_app/start.sh | 6 ++++-- frontend/appflowy_web_app/supervisord.conf | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/appflowy_web_app/start.sh b/frontend/appflowy_web_app/start.sh index b4691baa1a..2c0961565a 100644 --- a/frontend/appflowy_web_app/start.sh +++ b/frontend/appflowy_web_app/start.sh @@ -1,10 +1,12 @@ #!/bin/bash -# Start the frontend server -bun run server.cjs & + # Start the nginx server service nginx start +# Start the frontend server +bun run server.cjs + tail -f /dev/null diff --git a/frontend/appflowy_web_app/supervisord.conf b/frontend/appflowy_web_app/supervisord.conf index 943c9dfc4d..7e75db86de 100644 --- a/frontend/appflowy_web_app/supervisord.conf +++ b/frontend/appflowy_web_app/supervisord.conf @@ -1,9 +1,9 @@ [supervisord] nodaemon=true -[program:start] +[program:bun] command=sh /app/start.sh autostart=true autorestart=true -stderr_logfile=/var/log/start.err.log -stdout_logfile=/var/log/start.out.log +stderr_logfile=/var/bun/run.err.log +stdout_logfile=/var/bun/run.out.log