Merge pull request #192 from niphlod/fix/setup_scripts
fix scripts fetching handlers from /handlers
This commit is contained in:
@@ -453,10 +453,9 @@ cd /home/www-data
|
||||
wget http://web2py.com/examples/static/web2py_src.zip
|
||||
unzip 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
|
||||
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)"
|
||||
/etc/init.d/redmine start
|
||||
start uwsgi-emperor
|
||||
|
||||
@@ -159,6 +159,7 @@ fi
|
||||
|
||||
wget http://web2py.com/examples/static/web2py_src.zip
|
||||
unzip web2py_src.zip
|
||||
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
|
||||
chown -R apache:apache web2py
|
||||
|
||||
###
|
||||
|
||||
@@ -159,6 +159,7 @@ fi
|
||||
|
||||
wget http://web2py.com/examples/static/web2py_src.zip
|
||||
unzip web2py_src.zip
|
||||
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
|
||||
chown -R apache:apache web2py
|
||||
|
||||
###
|
||||
|
||||
@@ -132,7 +132,7 @@ cd /var/www/
|
||||
curl --progress -O http://web2py.com/examples/static/web2py_src.zip
|
||||
unzip web2py_src.zip && rm -rf web2py_src.zip
|
||||
# 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
|
||||
cd /var/www/web2py
|
||||
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
|
||||
curl -O http://www.web2py.com/examples/static/web2py_src.zip
|
||||
unzip web2py_src.zip
|
||||
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
|
||||
|
||||
echo "Set the ownership for web2py application to uwsgi"
|
||||
chown -R uwsgi /opt/web-apps/web2py
|
||||
|
||||
@@ -102,8 +102,7 @@ cd /srv/www/
|
||||
wget http://web2py.com/examples/static/web2py_src.zip
|
||||
unzip web2py_src.zip
|
||||
rm web2py_src.zip
|
||||
# Download latest version of sessions2trash.py
|
||||
wget http://web2py.googlecode.com/hg/scripts/sessions2trash.py -O /srv/www/web2py/scripts/sessions2trash.py
|
||||
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
|
||||
chown -R nginx:www web2py
|
||||
cd /srv/www/web2py
|
||||
sudo -u nginx python -c "from gluon.main import save_password; save_password('$PW',443)"
|
||||
|
||||
@@ -169,9 +169,8 @@ mkdir /home/www-data
|
||||
cd /home/www-data
|
||||
wget http://web2py.com/examples/static/web2py_src.zip
|
||||
unzip web2py_src.zip
|
||||
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
|
||||
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
|
||||
cd /home/www-data/web2py
|
||||
sudo -u www-data python -c "from gluon.main import save_password; save_password('$PW',443)"
|
||||
|
||||
@@ -59,6 +59,7 @@ cd www-data
|
||||
rm web2py_src.zip*
|
||||
wget http://web2py.com/examples/static/web2py_src.zip
|
||||
unzip web2py_src.zip
|
||||
mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
|
||||
chown -R www-data:www-data web2py
|
||||
|
||||
echo "setting up apache modules"
|
||||
|
||||
Reference in New Issue
Block a user