Compare commits
3 Commits
03fcbdb5ad
...
de56b564c5
| Author | SHA1 | Date | |
|---|---|---|---|
| de56b564c5 | |||
|
|
833ff378ea
|
||
|
|
754b0ca5f6
|
14
deploy/entrypoint.prod.sh
Executable file
14
deploy/entrypoint.prod.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
python manage.py tailwind install --no-input
|
||||
python manage.py tailwind build
|
||||
python manage.py migrate --noinput
|
||||
python manage.py collectstatic --noinput
|
||||
|
||||
exec gunicorn config.wsgi:application \
|
||||
--workers 3 \
|
||||
--bind 0.0.0.0:8000 \
|
||||
--access-logfile - \
|
||||
--error-logfile - \
|
||||
--capture-output
|
||||
@@ -1,18 +1,8 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
build: app
|
||||
working_dir: /app
|
||||
command: >
|
||||
sh -c "python manage.py tailwind install --no-input &&
|
||||
python manage.py tailwind build &&
|
||||
python manage.py migrate --noinput &&
|
||||
python manage.py collectstatic --noinput &&
|
||||
gunicorn config.wsgi:application
|
||||
--workers 3
|
||||
--bind 0.0.0.0:8000
|
||||
--access-logfile -
|
||||
--error-logfile -
|
||||
--capture-output"
|
||||
command: /app/deploy/entrypoint.prod.sh
|
||||
env_file: .env
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: config.settings.production
|
||||
|
||||
Reference in New Issue
Block a user