Skip to content

Commit

Permalink
Collect static files before running uwsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonas Venäläinen committed Aug 13, 2021
1 parent 93f68a9 commit 63cc43a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ production:
variables:
K8S_SECRET_STABLE_GCS_BUCKET_NAME: $STABLE_GCS_BUCKET_NAME
K8S_SECRET_SMTP_RELAY_HOST: $SMTP_RELAY_HOST
environment:
name: production
only:
refs:
- external_pull_requests
Expand Down
1 change: 1 addition & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ elif [[ "$DEV_SERVER" = "1" ]]; then
# If no command, and the dev server env var is true, run the dev server
exec ./manage.py runserver 0.0.0.0:8000
else
python manage.py collectstatic --noinput
exec uwsgi --ini uwsgi.ini
fi

0 comments on commit 63cc43a

Please sign in to comment.