mirror of
https://github.com/suitenumerique/drive.git
synced 2026-10-01 14:05:15 +02:00
This commit, with contributions from Sylvain Grizard, adds support for PaaS deployment platforms such as Scalingo, which build the project on commit. It uses the La Suite Buildpack, which compiles the frontend first as static files, and serves them along with the backend with nginx.
16 lines
324 B
Bash
16 lines
324 B
Bash
#!/bin/bash
|
|
|
|
# Start the Django backend
|
|
gunicorn -b :8000 drive.wsgi:application --log-file - &
|
|
|
|
# Start the Nginx server
|
|
bin/run &
|
|
|
|
# if the current shell is killed, also terminate all its children
|
|
trap "pkill SIGTERM -P $$" SIGTERM
|
|
|
|
# wait for a single child to finish,
|
|
wait -n
|
|
# then kill all the other tasks
|
|
pkill -P $$
|