Files
lasuite-drive/bin/scalingo_run_web
T
Sylvain Zimmer dd6f0be90a 🚀(scalingo) add Scalingo deployment scripts and fix frontend build
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.
2025-06-03 11:06:01 +02:00

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 $$