Compare commits
1 Commits
feat/deplo
...
03fcbdb5ad
| Author | SHA1 | Date | |
|---|---|---|---|
| 03fcbdb5ad |
@@ -1,14 +0,0 @@
|
||||
#!/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,8 +1,18 @@
|
||||
services:
|
||||
web:
|
||||
build: app
|
||||
build: .
|
||||
working_dir: /app
|
||||
command: /app/deploy/entrypoint.prod.sh
|
||||
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"
|
||||
env_file: .env
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: config.settings.production
|
||||
|
||||
Reference in New Issue
Block a user