Merge pull request #192 from niphlod/fix/setup_scripts

fix scripts fetching handlers from /handlers
This commit is contained in:
mdipierro
2013-08-31 07:45:05 -07:00
8 changed files with 60 additions and 59 deletions
@@ -453,10 +453,9 @@ cd /home/www-data
wget http://web2py.com/examples/static/web2py_src.zip wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip unzip web2py_src.zip
rm web2py_src.zip rm web2py_src.zip
# Download latest version of sessions2trash.py
wget http://web2py.googlecode.com/hg/scripts/sessions2trash.py -O /home/www-data/web2py/scripts/sessions2trash.py
chown -R www-data:www-data web2py chown -R www-data:www-data web2py
cd /home/www-data/web2py cd /home/www-data/web2py
mv handlers/wsgihandler.py wsgihandler.py
sudo -u www-data python -c "from gluon.main import save_password; save_password('$PW',443)" sudo -u www-data python -c "from gluon.main import save_password; save_password('$PW',443)"
/etc/init.d/redmine start /etc/init.d/redmine start
start uwsgi-emperor start uwsgi-emperor
+1
View File
@@ -159,6 +159,7 @@ fi
wget http://web2py.com/examples/static/web2py_src.zip wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip unzip web2py_src.zip
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
chown -R apache:apache web2py chown -R apache:apache web2py
### ###
+1
View File
@@ -159,6 +159,7 @@ fi
wget http://web2py.com/examples/static/web2py_src.zip wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip unzip web2py_src.zip
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
chown -R apache:apache web2py chown -R apache:apache web2py
### ###
+1 -1
View File
@@ -132,7 +132,7 @@ cd /var/www/
curl --progress -O http://web2py.com/examples/static/web2py_src.zip curl --progress -O http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip && rm -rf web2py_src.zip unzip web2py_src.zip && rm -rf web2py_src.zip
# Download latest version of sessions2trash.py # Download latest version of sessions2trash.py
curl --output /var/www/web2py/scripts/sessions2trash.py http://web2py.googlecode.com/hg/scripts/sessions2trash.py mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
chown -R nginx:nginx web2py chown -R nginx:nginx web2py
cd /var/www/web2py cd /var/www/web2py
sudo -u nginx python -c "from gluon.main import save_password; save_password('$PW',443)" sudo -u nginx python -c "from gluon.main import save_password; save_password('$PW',443)"
@@ -122,6 +122,7 @@ mkdir ./web-apps
cd ./web-apps cd ./web-apps
curl -O http://www.web2py.com/examples/static/web2py_src.zip curl -O http://www.web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip unzip web2py_src.zip
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
echo "Set the ownership for web2py application to uwsgi" echo "Set the ownership for web2py application to uwsgi"
chown -R uwsgi /opt/web-apps/web2py chown -R uwsgi /opt/web-apps/web2py
+1 -2
View File
@@ -102,8 +102,7 @@ cd /srv/www/
wget http://web2py.com/examples/static/web2py_src.zip wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip unzip web2py_src.zip
rm web2py_src.zip rm web2py_src.zip
# Download latest version of sessions2trash.py mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
wget http://web2py.googlecode.com/hg/scripts/sessions2trash.py -O /srv/www/web2py/scripts/sessions2trash.py
chown -R nginx:www web2py chown -R nginx:www web2py
cd /srv/www/web2py cd /srv/www/web2py
sudo -u nginx python -c "from gluon.main import save_password; save_password('$PW',443)" sudo -u nginx python -c "from gluon.main import save_password; save_password('$PW',443)"
+1 -2
View File
@@ -169,9 +169,8 @@ mkdir /home/www-data
cd /home/www-data cd /home/www-data
wget http://web2py.com/examples/static/web2py_src.zip wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip unzip web2py_src.zip
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
rm web2py_src.zip rm web2py_src.zip
# Download latest version of sessions2trash.py
wget http://web2py.googlecode.com/hg/scripts/sessions2trash.py -O /home/www-data/web2py/scripts/sessions2trash.py
chown -R www-data:www-data web2py chown -R www-data:www-data web2py
cd /home/www-data/web2py cd /home/www-data/web2py
sudo -u www-data python -c "from gluon.main import save_password; save_password('$PW',443)" sudo -u www-data python -c "from gluon.main import save_password; save_password('$PW',443)"
+1
View File
@@ -59,6 +59,7 @@ cd www-data
rm web2py_src.zip* rm web2py_src.zip*
wget http://web2py.com/examples/static/web2py_src.zip wget http://web2py.com/examples/static/web2py_src.zip
unzip web2py_src.zip unzip web2py_src.zip
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
chown -R www-data:www-data web2py chown -R www-data:www-data web2py
echo "setting up apache modules" echo "setting up apache modules"