diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8098f5b0e..d0c46e64af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,6 +160,7 @@ jobs: set -x yarn cypress build yarn cypress start -- --skip-db-seed + sleep 30 docker compose run cypress yarn cypress db-seed - name: Execute Cypress Tests run: yarn cypress run-ci diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint index 5e777c10ed..cb81c263f8 100755 --- a/bin/docker-entrypoint +++ b/bin/docker-entrypoint @@ -42,6 +42,10 @@ dev_worker() { } server() { + echo "Upgrading database..." + + /app/manage.py db upgrade + # Recycle gunicorn workers every n-th request. See http://docs.gunicorn.org/en/stable/settings.html#max-requests for more details. MAX_REQUESTS=${MAX_REQUESTS:-1000} MAX_REQUESTS_JITTER=${MAX_REQUESTS_JITTER:-100}