Spaces:
Build error
Build error
Update supervisord.conf
Browse files- supervisord.conf +6 -10
supervisord.conf
CHANGED
@@ -1,17 +1,13 @@
|
|
1 |
[supervisord]
|
2 |
nodaemon=true
|
3 |
-
|
4 |
-
[program:postgresql]
|
5 |
-
command=/usr/lib/postgresql/13/bin/postgres -D /var/lib/postgresql/13/main -c config_file=/etc/postgresql/13/main/postgresql.conf
|
6 |
-
autostart=true
|
7 |
-
autorestart=true
|
8 |
|
9 |
[program:redis]
|
10 |
command=redis-server
|
11 |
-
autostart=true
|
12 |
-
autorestart=true
|
13 |
|
14 |
-
[program:
|
15 |
-
command=
|
16 |
-
|
|
|
|
|
17 |
autorestart=true
|
|
|
1 |
[supervisord]
|
2 |
nodaemon=true
|
3 |
+
user=root
|
|
|
|
|
|
|
|
|
4 |
|
5 |
[program:redis]
|
6 |
command=redis-server
|
|
|
|
|
7 |
|
8 |
+
[program:postgresql]
|
9 |
+
command=service postgresql start
|
10 |
+
|
11 |
+
[program:uvicorn]
|
12 |
+
command=uvicorn app:app --host 0.0.0.0 --port 7860
|
13 |
autorestart=true
|