| |
@@ -61,14 +61,14 @@
|
| |
If you want to test it with 8 worker threads, try ``gunicorn``::
|
| |
|
| |
$ pip install gunicorn
|
| |
- $ gunicorn -w 8 -t 60 --log-config logging.ini --reload hubs.app:app
|
| |
+ $ gunicorn -w 8 -t 60 --log-config logging.ini --reload hubs.app:app -b :5000
|
| |
|
| |
Note that then the application is available at http://localhost:8000/
|
| |
|
| |
When hacking on widgets, it is useful to have this one-liner handy. It removes
|
| |
the db alltogether, re-populates it, and restarts the app::
|
| |
|
| |
- $ rm /var/tmp/hubs.db; rm /var/tmp/fedora-hubs-cache.db; PYTHONPATH=. python populate.py; gunicorn -w 8 -t 240 --log-config logging.ini hubs.app:app
|
| |
+ $ rm /var/tmp/hubs.db; rm /var/tmp/fedora-hubs-cache.db; PYTHONPATH=. python populate.py; gunicorn -w 8 -t 240 --log-config logging.ini hubs.app:app -b :5000
|
| |
|
| |
Run the tests!
|
| |
--------------
|
| |