added script to update please.unglueit.com

pull/1/head
Ed Summers 2011-11-09 18:22:23 +00:00
parent 7cf40e88de
commit 4860ec430a
2 changed files with 11 additions and 1 deletions

10
deploy/update-regluit Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# put this in one of root's crontabs and it'll refresh and restart regluit
cd /opt/regluit
sudo -u ubuntu -c "git pull"
source ENV/bin/activate
django-admin.py syncdb --migrate --settings regluit.settings.prod
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/celeryd restart

View File

@ -54,7 +54,7 @@ PAYPAL_SIGNATURE = ''
PAYPAL_APPID = ''
PAYPAL_ENDPOINT = 'svcs.sandbox.paypal.com' # sandbox
PAYPAL_PAYMENT_HOST = 'http://www.sandbox.paypal.com' # sandbox
PAYPAL_PAYMENT_HOST = 'https://www.sandbox.paypal.com' # sandbox
PAYPAL_SANDBOX_LOGIN = ''
PAYPAL_SANDBOX_PASSWORD = ''