circumvent permission issues
This commit is contained in:
parent
c259aa11f7
commit
55099fd226
2 changed files with 4 additions and 5 deletions
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
# Proxy all other requests to Gunicorn
|
# Proxy all other requests to Gunicorn
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy unix//run/gunicorn.sock
|
reverse_proxy unix//app/run/gunicorn.sock
|
||||||
}
|
}
|
||||||
|
|
||||||
respond /healthz "OK" 200
|
respond /healthz "OK" 200
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
# Create required directories with appropriate permissions
|
# Create required directories with appropriate permissions
|
||||||
mkdir -p /run/caddy /run/gunicorn
|
mkdir -p /app/run/caddy /app/run/gunicorn
|
||||||
chmod 777 /run /run/caddy /run/gunicorn
|
|
||||||
|
|
||||||
echo "Applying database migrations"
|
echo "Applying database migrations"
|
||||||
python -m hub migrate
|
python -m hub migrate
|
||||||
|
|
||||||
echo "Starting Caddy"
|
echo "Starting Caddy"
|
||||||
caddy start --config /etc/caddy/Caddyfile --pidfile /run/caddy/caddy.pid
|
caddy start --config /etc/caddy/Caddyfile --pidfile /app/run/caddy/caddy.pid
|
||||||
|
|
||||||
echo "Starting Gunicorn"
|
echo "Starting Gunicorn"
|
||||||
exec \
|
exec \
|
||||||
|
@ -18,5 +17,5 @@ exec \
|
||||||
--error-log - \
|
--error-log - \
|
||||||
--capture-output \
|
--capture-output \
|
||||||
--pythonpath /app/.venv/lib/python3.13/site-packages/ \
|
--pythonpath /app/.venv/lib/python3.13/site-packages/ \
|
||||||
--bind unix:/run/gunicorn.sock \
|
--bind unix:/app/run/gunicorn.sock \
|
||||||
hub.wsgi:application
|
hub.wsgi:application
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue