From 2f1dd60a46955fbed88c02029b69e3efeff92677 Mon Sep 17 00:00:00 2001 From: dpedu Date: Sun, 14 Jun 2015 00:04:35 -0700 Subject: [PATCH] default processes to 3, update readme --- README.md | 10 ++++++++-- pythonapp.ini | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c56409..0c5cadd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Docker Pythonapp ================ -For running uWSGI python3 app +For running uWSGI python3 apps. **Usage:** @@ -10,8 +10,14 @@ For running uWSGI python3 app * `testapp/app.py` is the main wsgi file. var `application` must be the wsgi app instance. * testapp/requirements.txt is used by pip to install required modules * app/static will be mapped to http://server.address/static/ -* run container: docker run -p 80:80 -v /localpath/to/appdir/:/home/python/app/ pythonapp +* run container: `docker run -p 80:80 -v /localpath/to/appdir/:/home/python/app/ pythonapp` **Example app:** http://gitlab.xmopx.net/dave/example-uwsgi-app/tree/master + +**TODO** + +* Figure out a way to run apps in "test" mode (I.E. CherryPy / Flask builtin server w/ debug mode) +* Easier way to change uwsgi ini file. (Maybe, override defaults if appdir/uwsgi.ini is present?) +* Multiple apps in a single container? diff --git a/pythonapp.ini b/pythonapp.ini index f49ef17..e3607e8 100644 --- a/pythonapp.ini +++ b/pythonapp.ini @@ -9,7 +9,7 @@ chdir = /home/python/app/ wsgi-file = /home/python/app/app.py callable = application master = true -processes = 1 +processes = 3 socket = 127.0.0.1:3330 enable-threads = true no-threads-wait = true