| ... | ... | @@ -19,7 +19,7 @@ Python 2.7.8 |
|
|
|
Here is how to get the Passenger Flask python demo working under Open OnDemand. https://github.com/phusion/passenger-python-flask-demo. Ensure that the desired version of python is installed on the webhost.
|
|
|
|
|
|
|
|
|
|
|
|
1. Clone the repo and check out the end result branch:
|
|
|
|
### 1. Clone the repo and check out the end result branch:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd ~/awesim/dev
|
| ... | ... | @@ -39,7 +39,7 @@ Switched to a new branch 'end_result' |
|
|
|
|
|
|
|
* notice passenger_wsgi.py imports the app.py file; Passenger will load passenger_wsgi.py first
|
|
|
|
|
|
|
|
2. Create a `.pip` directory that will hold dependencies for this app, and install dependencies here:
|
|
|
|
### 2. Create a `.pip` directory that will hold dependencies for this app, and install dependencies here:
|
|
|
|
|
|
|
|
```
|
|
|
|
efranz@webtest04:~/awesim/dev/hellopython (end_result)$ mkdir .pip
|
| ... | ... | @@ -67,6 +67,6 @@ Type "help", "copyright", "credits" or "license" for more information. |
|
|
|
>>>
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Add `bin/python` command which will be used to setup the environment
|
|
|
|
### 3. Add `bin/python` command which will be used to setup the environment
|
|
|
|
|
|
|
|
NGINX with Passenger is configured to execute `$APPROOT/bin/python` if this exists, so we can add environment modifications here. Following the example https://github.com/OSC/nginx_stage/blob/cc1398ed35214ed6bd774ffee93ad679e5f01cb0/bin/ood_ruby.example |
|
|
\ No newline at end of file |