Commit 26abd7967db140ec0e2d2251880e3bf06d483fc6

Authored by Andrew Buss
1 parent 8822360d74
Exists in master

Moved part of deploy back to jenkins

Showing 2 changed files with 2 additions and 13 deletions Side-by-side Diff

scripts/run_production.sh View file @ 26abd79
1 1 #!/bin/bash -xe
2 2 source secrets
3 3 source venv/bin/activate
4   -gunicorn -b flashy.cards:7002 flashy.wsgi
  4 +venv/bin/gunicorn -b flashy.cards:7002 flashy.wsgi
scripts/setup_production.sh View file @ 26abd79
... ... @@ -4,16 +4,4 @@
4 4 source secrets
5 5 #pip install psycopg2
6 6 python manage.py migrate
7   -echo "Checking whether nginx conf was updated"
8   -DIFF=$(diff /srv/flashy-backend/nginxconf/flashy.cards /etc/nginx/sites-available/flashy.cards)
9   -if [ "$DIFF" != "" ]
10   -then
11   - echo "Restarting nginx"
12   - cp -v /srv/flashy-backend/nginxconf/flashy.cards /etc/nginx/sites-available
13   - sudo /etc/init.d/nginx reload
14   -fi
15   -echo "Syncing static files"
16   -rsync -rP /srv/flashy-backend/static/ /srv/static
17   -echo "Poking uwsgi to restart the site"
18   -cp -v /srv/flashy-backend/flashy.ini /etc/uwsgi/