Skip to content

Commit

Permalink
Create a simple deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
evdb committed Aug 27, 2015
1 parent 8b47bc9 commit 01101a8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions config/deploy.bash
@@ -0,0 +1,25 @@
#!/bin/bash

set -e

cd /home/omnirose/omnirose-website

. .venv/bin/activate

git pull

# check that the config files are not changed
diff -u config/nginx /etc/nginx/sites-enabled/omnirose || exit
diff -u config/uwsgi.ini /etc/uwsgi/apps-enabled/omnirose.ini || exit
diff -u omnirose/local_settings.py ~/local_settings.py || exit

cd omnirose

pip install -q -r requirements.txt

./manage.py collectstatic --noinput
./manage.py migrate

echo
echo 'RUN "sudo service uwsgi restart" now'
echo

0 comments on commit 01101a8

Please sign in to comment.