feat: add client to supervisord.conf

This commit is contained in:
2025-03-19 15:53:42 +05:00
parent 15a5dad514
commit 2dc50465ce
7 changed files with 31 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ environment=
MYSQL_HOST=localhost,
MYSQL_USER=connect,
MYSQL_PORT=3306,
MYSQL_PASSWORD=%(ENV_MYSQL_PASSWORD)s,
MYSQL_PASSWORD=hackme,
BROKER_PROTOCOL=amqp,
BROKER_HOST=localhost,
BROKER_USER=guest,
@@ -25,3 +25,19 @@ stderr_logfile=api.err.log
autostart=true
autorestart=true
startretries=5
[program:client]
environment=
REACT_APP_WEBSOCKET_PROTOCOL=ws,
REACT_APP_HTTP_PROTOCOL=http,
REACT_APP_API_URL=localhost:8000,
REACT_APP_URL=localhost:3000
command=bash -c 'cd client; npm run build; serve -s build'
numprocs=1
process_name=node-%(process_num)d
stdout_logfile=client.out.log
stderr_logfile=client.err.log
autostart=true
autorestart=true
startretries=5