-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Assets #13
Comments
You could add it to a shell script: #!/bin/sh
python /app/manage.py collectstatic --noinput
/usr/local/bin/gunicorn docker_django.wsgi:application -w 2 -b :8000 Then in the production.yml file just run the shell script: web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
- redis:redis
env_file: .env
command: /shell-script.sh |
This give me an error: web_1 | usage: manage.py collectstatic [-h] [--version] [-v {0,1,2,3}] |
This isn't working in the production deployment. |
@viktorvillalobos It may be caused by |
Any way to let Django serve the static assets if collectstatic hasn't been run yet? It's sort of a pain to run collectstatic each time you know?
The text was updated successfully, but these errors were encountered: