Commit 6ccf41c1 authored by Mathieu Giraud's avatar Mathieu Giraud

server: move web2py install to 'make install_web2py'

There should be a way to install/configure web2py, without nginx,
either for server unit tests or to use something else than nginx.
parent db5eb2e4
......@@ -2,6 +2,18 @@
data:
sh nginx_install.sh
install_web2py:
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
cp -i web2py/applications/vidjil/modules/defs.py.sample web2py/applications/vidjil/modules/defs.py
install_unit_tests:
pip install unittest2
pip install unittest-xml-reporting
unit: clean_unit_tests
cd web2py; python web2py.py -S vidjil -M -R testRunner.py
......
......@@ -219,11 +219,7 @@ exec uwsgi --master --die-on-term --emperor /etc/uwsgi --logto /var/log/uwsgi/uw
# Install Web2py
cd $CWD
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
cp web2py/applications/vidjil/modules/defs.py.sample web2py/applications/vidjil/modules/defs.py
make install_web2py
chown -R www-data:www-data web2py
cd $CWD/web2py
sudo -u www-data python -c "from gluon.main import save_password; save_password('$PW',443)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment