From 8ecd1bca3415c8c1be9aa654421a3798c087faa5 Mon Sep 17 00:00:00 2001 From: dandds Date: Wed, 3 Apr 2019 06:31:56 -0400 Subject: [PATCH] readme for sample server --- sample-server/README | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sample-server/README diff --git a/sample-server/README b/sample-server/README new file mode 100644 index 00000000..7e0407f4 --- /dev/null +++ b/sample-server/README @@ -0,0 +1,17 @@ +# Sample Server + +## Requirements + +- [nginx](https://www.nginx.com/resources/wiki/start/topics/tutorials/install/): On macos with homebrew, `brew install nginx` +- [uwsgi](https://uwsgi-docs.readthedocs.io/en/latest/Install.html): With python, `pip install uwsgi`. +- pipenv and honcho: If you have the regular atst dependencies installed, you already have pipenv and honcho + +## Run + +The sample server runs at localhost:8000, so you cannot have another copy of the app running on that port. + +Start both NGINX and uWSGI with honcho: + +``` +pipenv run honcho start -f sample-server/Procfile +```