next try
This commit is contained in:
parent
532a029e61
commit
561cf5764a
3 changed files with 9 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
log {
|
||||
output stderr
|
||||
format console
|
||||
level ERROR
|
||||
level INFO
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,18 +2,22 @@
|
|||
|
||||
# Create required directories with appropriate permissions
|
||||
mkdir -p /app/run/caddy /app/run/gunicorn
|
||||
chmod -R g+w /app/run
|
||||
|
||||
# Set Caddy config location
|
||||
export XDG_CONFIG_HOME="/app/config"
|
||||
|
||||
echo "Applying database migrations"
|
||||
python -m hub migrate
|
||||
|
||||
echo "Starting Caddy"
|
||||
caddy run --config /etc/caddy/Caddyfile &
|
||||
exec caddy run --config /app/config/caddy/Caddyfile --adapter caddyfile 2>&1 &
|
||||
|
||||
echo "Starting Gunicorn"
|
||||
exec \
|
||||
gunicorn \
|
||||
-w 4 \
|
||||
--access-logfile None \
|
||||
--access-logfile - \
|
||||
--error-log - \
|
||||
--capture-output \
|
||||
--pythonpath /app/.venv/lib/python3.13/site-packages/ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue