configure deployment
This commit is contained in:
parent
a913a6db8e
commit
4f8d292974
3 changed files with 8 additions and 2 deletions
|
@ -1,10 +1,14 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# Create required directories with appropriate permissions
|
||||
mkdir -p /run/caddy /run/gunicorn
|
||||
chmod 777 /run /run/caddy /run/gunicorn
|
||||
|
||||
echo "Applying database migrations"
|
||||
python -m hub migrate
|
||||
|
||||
echo "Starting Caddy"
|
||||
caddy start --config /etc/caddy/Caddyfile
|
||||
caddy start --config /etc/caddy/Caddyfile --pidfile /run/caddy/caddy.pid
|
||||
|
||||
echo "Starting Gunicorn"
|
||||
exec \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue