Verified Commit 8514387a authored by Joren Vrancken's avatar Joren Vrancken
Browse files

Do migrate, collectstatic and compress in entrypoints

parent 4fa22b3c
...@@ -12,6 +12,11 @@ done ...@@ -12,6 +12,11 @@ done
>&2 echo "PostgreSQL is up" >&2 echo "PostgreSQL is up"
cd /usr/src/app/website/ cd /usr/src/app/website/
./manage.py collectstatic --no-input
./manage.py migrate --no-input
./manage.py compress --force
>&2 echo "Running site with uwsgi" >&2 echo "Running site with uwsgi"
uwsgi --chdir /usr/src/app/website \ uwsgi --chdir /usr/src/app/website \
--socket :8000 \ --socket :8000 \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment