setup.sh 507 B

12345678910111213141516171819
  1. #!/bin/bash
  2. fw_depends python2
  3. pip install --install-option="--prefix=${PY2_ROOT}" -r $TROOT/requirements.txt
  4. rm -fr web2py
  5. git clone --recursive --branch master https://github.com/web2py/web2py.git
  6. cd web2py
  7. git checkout 326335c3cd027a97b9c2b83d880b2b1f8f62321d
  8. cd ..
  9. cp -r app/standard/ web2py/applications/
  10. cp -r app/optimized/ web2py/applications/
  11. cp app/wsgi.py web2py/
  12. cp app/routes.py web2py/
  13. touch web2py/__init__.py
  14. python compile_apps.py
  15. gunicorn web2py.wsgi:application -c gunicorn_conf.py &