Update bin/deploy to use production settings
This commit is contained in:
		
							parent
							
								
									fedab3120b
								
							
						
					
					
						commit
						e93f864e0e
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -6,9 +6,10 @@ set -x  # Show output | ||||||
| set -e  # Abort on failure | set -e  # Abort on failure | ||||||
| cd /var/www/website | cd /var/www/website | ||||||
| sudo -u www-data git pull | sudo -u www-data git pull | ||||||
| sudo -u www-data /var/www/venv-website/bin/python3 manage.py check | export DJANGO_SETTINGS_MODULE=conservancy.settings.prod | ||||||
| sudo -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 check | ||||||
| sudo -u www-data /var/www/venv-website/bin/python3 manage.py collectstatic -v0 --noinput --link | 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 | sudo systemctl reload apache2 | ||||||
| curl --silent --head https://sfconservancy.org | grep --perl-regexp "^HTTP/.+ 200" | curl --silent --head https://sfconservancy.org | grep --perl-regexp "^HTTP/.+ 200" | ||||||
| EOF | EOF | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue