[damned-lies/oscp] Apply migrations during deployment



commit bfa383351b0ce033870f98522186e796c87c389c
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Apr 16 17:12:14 2021 +0200

    Apply migrations during deployment

 httpd/entrypoint.sh | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/httpd/entrypoint.sh b/httpd/entrypoint.sh
index f1d28ee1..df40c527 100755
--- a/httpd/entrypoint.sh
+++ b/httpd/entrypoint.sh
@@ -15,6 +15,9 @@ ln -s /home/l10n/.ssh_secret/ssh-privatekey /home/l10n/.ssh/ssh-privatekey
 ln -s /home/l10n/.ssh_secret/.gitconfig /home/l10n/.gitconfig
 wget https://gitlab.gnome.org/Infrastructure/damned-lies/-/raw/oscp/httpd/ssh_config -O 
/home/l10n/.ssh/config
 
+echo 'Applying migrations'
+/l10n/venv/bin/python manage.py migrate
+
 echo 'Generating static files'
 /l10n/venv/bin/python manage.py collectstatic
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]