Changeset - e93f864e0e93
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 1 month ago 2024-03-20 03:18:46
ben@sturm.com.au
Update bin/deploy to use production settings
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
bin/deploy
Show inline comments
...
 
@@ -6,9 +6,10 @@ set -x  # Show output
 
set -e  # Abort on failure
 
cd /var/www/website
 
sudo -u www-data git pull
 
sudo -u www-data /var/www/venv-website/bin/python3 manage.py check
 
sudo -u www-data /var/www/venv-website/bin/python3 manage.py migrate
 
sudo -u www-data /var/www/venv-website/bin/python3 manage.py collectstatic -v0 --noinput --link
 
export DJANGO_SETTINGS_MODULE=conservancy.settings.prod
 
sudo -E -u www-data /var/www/venv-website/bin/python3 manage.py check
 
sudo -E -u www-data /var/www/venv-website/bin/python3 manage.py migrate
 
sudo -E -u www-data /var/www/venv-website/bin/python3 manage.py collectstatic -v0 --noinput --link
 
sudo systemctl reload apache2
 
curl --silent --head https://sfconservancy.org | grep --perl-regexp "^HTTP/.+ 200"
 
EOF
0 comments (0 inline, 0 general)