| ... | ... | @@ -67,6 +67,8 @@ Type "help", "copyright", "credits" or "license" for more information. |
|
|
|
>>>
|
|
|
|
```
|
|
|
|
|
|
|
|
_The idea of using pip this way came from https://www.zoomeranalytics.com/blog/pip-install-t_
|
|
|
|
|
|
|
|
### 3. Add `bin/python` command which will be used to setup the environment when Passenger launches the app
|
|
|
|
|
|
|
|
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
|
| ... | ... | @@ -100,4 +102,5 @@ exec /bin/env python "$@" |
|
|
|
|
|
|
|
### 4. Access app URL to launch
|
|
|
|
|
|
|
|
Go to https://apps-test.awesim.org/pun/dev/hellopython or go to Develop->Sandbox Apps on the dashboard to launch app |
|
|
\ No newline at end of file |
|
|
|
Go to https://apps-test.awesim.org/pun/dev/hellopython or go to Develop->Sandbox Apps on the dashboard to launch app
|
|
|
|
|