Skip to content

Commit c42cf15

Browse files
committed
fixes
1 parent 5a6c42b commit c42cf15

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/ansible/playbook.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
DEBUG: "False"
7575
ALLOWED_HOSTS: "srv501663.hstgr.cloud,leaderboard.coneheads.org"
7676
CSRF_TRUSTED_ORIGINS: "https://srv501663.hstgr.cloud,https://leaderboard.coneheads.org"
77-
DATABASE_URL: "sqlite:///var/web/db.sqlite"
77+
DATABASE_URL: "sqlite:///data/db.sqlite"
7878
SECRET_KEY_FILE: "/etc/SECRET_KEY"
7979
STATIC_ROOT: "/data/static"
8080

src/docker/web/entrypoint.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ if [ -z "$DATABASE_URL" ]; then
1414
exit 1
1515
fi
1616

17-
echo "Migrating"
18-
/manage.pex migrate --no-input
19-
2017
if [ -z "$STATIC_ROOT" ]; then
18+
echo "Collecting Static"
2119
/manage.pex collectstatic
2220
fi
2321

22+
echo "Migrating"
23+
/manage.pex migrate --no-input
24+
2425
echo "Running"
2526
exec /gunicorn.pex

0 commit comments

Comments
 (0)