From 4112529d94a117845dabcae6e8be88448b88d27b Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Jul 10 2016 08:57:09 +0000 Subject: Update the README to specify the gunicorn port --- diff --git a/README.rst b/README.rst index 5379dad..d896932 100644 --- a/README.rst +++ b/README.rst @@ -61,14 +61,14 @@ And then navigate to http://localhost:5000/ 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! --------------