| 1 | |
| 2 | |
| 3 | |
| 4 | chown postgres:postgres /var/lib/postgresql/data |
| 5 | if [ ! "$(ls -A /var/lib/postgresql/data)" ]; then |
| 6 | su postgres -c "initdb -D /var/lib/postgresql/data" |
| 7 | fi |
| 8 | sed -i 's/\/run\/postgresql/\/tmp/' /var/lib/postgresql/data/postgresql.conf |
| 9 | su postgres -c 'pg_ctl start -D /var/lib/postgresql/data' |
| 10 | |
| 11 | nginx |
| 12 | tail -f /var/lib/nginx/logs/access.log & |
| 13 | |
| 14 | cd frontend && npm start & |
| 15 | cd backend && python manage.py migrate |
| 16 | cd /backend && uvicorn backend.asgi:application --host 0.0.0.0 |