Merge pull request #626 from Gluejar/dj18

update update-just and update-prod
pull/1/head
Raymond Yee 2016-09-07 19:28:30 -07:00 committed by GitHub
commit 1d38dd5ccf
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,8 @@ cd /opt/regluit
sudo -u ubuntu /usr/bin/git pull
source ENV/bin/activate
pip install --upgrade -r requirements_versioned.pip
django-admin.py syncdb --migrate --settings regluit.settings.just
#django-admin.py syncdb --migrate --settings regluit.settings.just
django-admin.py migrate --fake-initial --noinput --settings regluit.settings.just
django-admin.py collectstatic --noinput --settings regluit.settings.just
sudo /etc/init.d/apache2 restart

View File

@ -4,8 +4,10 @@ cd /opt/regluit
sudo -u ubuntu /usr/bin/git pull origin production
source ENV/bin/activate
pip install --upgrade -r requirements_versioned.pip
django-admin.py syncdb --migrate --settings regluit.settings.prod
#django-admin.py syncdb --migrate --settings regluit.settings.prod
django-admin.py migrate --fake-initial --noinput --settings regluit.settings.prod
django-admin.py collectstatic --noinput --settings regluit.settings.prod
sudo /etc/init.d/apache2 restart
django-admin.py celeryd_multi restart w1 --settings=regluit.settings.prod;
/etc/init.d/celerybeat restart