Add static config
This commit is contained in:
parent
a3891494af
commit
db4074ab33
3 changed files with 6 additions and 0 deletions
|
@ -137,6 +137,8 @@ STATICFILES_DIRS = [
|
|||
os.path.join(BASE_DIR, "static"),
|
||||
]
|
||||
|
||||
STATIC_ROOT = os.getenv('STATIC_ROOT')
|
||||
|
||||
# Celery
|
||||
|
||||
CELERY_BROKER = os.getenv('CELERY_BROKER', 'redis://localhost:6379/0')
|
||||
|
|
|
@ -8,8 +8,11 @@ services:
|
|||
restart: on-failure
|
||||
depends_on:
|
||||
- database
|
||||
volumes:
|
||||
- /var/www/kers/static:/static
|
||||
command: >
|
||||
sh -c "./scripts/wait_for_service database 3306 &&
|
||||
python manage.py collectstatic --no-input
|
||||
python manage.py migrate &&
|
||||
python manage.py runserver 0.0.0.0:8000"
|
||||
|
||||
|
|
1
web.env
1
web.env
|
@ -9,3 +9,4 @@ OAUTH_CLIENT_SECRET=REPLACEME
|
|||
KERS_ADMIN_USERNAME=replaceme
|
||||
KERS_ADMIN_PASSWORD=replaceme
|
||||
ALLOWED_HOSTS=localhost
|
||||
STATIC_ROOT=/static
|
||||
|
|
Loading…
Reference in a new issue