piku/examples/python
Rui Carmo be0bd232f6 added clock worker 2019-05-21 22:31:19 +01:00
..
static nicer example 2016-05-03 20:46:19 +01:00
views nicer example 2016-05-03 20:46:19 +01:00
ENV Added more variables 2018-07-24 21:20:16 +01:00
Procfile confirms that #20 actually works and tests #19 2019-05-21 22:27:44 +01:00
README.md confirms that #20 actually works and tests #19 2019-05-21 22:27:44 +01:00
clock.py added clock worker 2019-05-21 22:31:19 +01:00
main.py Added more variables 2018-07-24 21:20:16 +01:00
requirements.txt confirms that #20 actually works and tests #19 2019-05-21 22:27:44 +01:00
worker.py Python 3 2018-06-14 22:19:40 +01:00

README.md

Python Sample Application

This is a simple Python app that demonstrates:

  • HTTP port selection via the PORT variable (set in ENV)
  • An independent worker process (that is auto-restarted upon exit)
  • Another independent worker with a built-in scheduler

To publish this app to piku, make a copy of this folder and run the following commands:

cd python_copy
git init .
git remote add piku piku@your_server:python_example
git add .
git commit -a -m "initial commit"
git push piku master