feat: sleep 5 seconds before starting the frontend to wait for the API
This commit is contained in:
parent
a73ce8e094
commit
e38e7110f4
2 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ autostart=true
|
||||||
startsecs=3
|
startsecs=3
|
||||||
|
|
||||||
[program:frontend]
|
[program:frontend]
|
||||||
command=npm run start
|
command=bash -c "sleep 5 && npm run start"
|
||||||
directory=/app/frontend
|
directory=/app/frontend
|
||||||
environment=NODE_ENV="production",PORT="8502"
|
environment=NODE_ENV="production",PORT="8502"
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ autostart=true
|
||||||
startsecs=3
|
startsecs=3
|
||||||
|
|
||||||
[program:frontend]
|
[program:frontend]
|
||||||
command=npm run start
|
command=bash -c "sleep 5 && npm run start"
|
||||||
directory=/app/frontend
|
directory=/app/frontend
|
||||||
environment=NODE_ENV="production",PORT="8502"
|
environment=NODE_ENV="production",PORT="8502"
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue