setup.sh 376 B

1234567891011121314
  1. #!/bin/bash
  2. fw_depends python2
  3. sed -i 's|127.0.0.1|'${DBHOST}'|g' app/app/models/db.py
  4. pip install --install-option="--prefix=${PY2_ROOT}" -r $TROOT/requirements.txt
  5. rm -fr web2py
  6. git clone --recursive --branch R-2.10.3 https://github.com/web2py/web2py.git
  7. cp -r app/app/ web2py/applications/
  8. cp app/routes.py web2py/
  9. python web2py/web2py.py -a '' -i 0.0.0.0 -p 8080 &