48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
[supervisord]
|
|
|
|
[program:api]
|
|
environment=
|
|
APP_HOST=http://127.0.0.1,
|
|
APP_PORT=8000,
|
|
PYTHONUNBUFFERED=1,
|
|
ENV=prod,
|
|
MYSQL_DB=connect_test,
|
|
MYSQL_HOST=localhost,
|
|
MYSQL_USER=connect,
|
|
MYSQL_PORT=3306,
|
|
MYSQL_PASSWORD=hackme,
|
|
BROKER_PROTOCOL=amqp,
|
|
BROKER_HOST=localhost,
|
|
BROKER_USER=guest,
|
|
BROKER_PORT=5672,
|
|
BROKER_PASSWORD=guest,
|
|
BROKER_RABBITMQ_VHOST=/,
|
|
REDIS_HOST=localhsot,
|
|
REDIS_PORT=6379,
|
|
REDIS_PASSWORD=hackme,
|
|
REDIS_DB=0
|
|
command=bash -c 'cd api; poetry run python3 -m api'
|
|
numprocs=1
|
|
process_name=uvicorn-%(process_num)d
|
|
stdout_logfile=api.out.log
|
|
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
|
|
|