From 4d1d923fa40b0145e1a23412d09621f9d68f1690 Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Sun, 19 Nov 2017 22:11:56 +0100 Subject: [PATCH] Update README.md In hopes of avoiding confusion related to issue #2 --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a3208d9..66693a7 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,26 @@ Recommended: # Using the thing +## Test deployment + * Clone the repo somewhere +* ``pip install -r requirements.txt`` * Do ``cp conf.py.sample conf.py`` * Edit ``conf.py`` so that the information is correct -* `sqlite3 files.db < schema.sql` -* If possible, make it listen on ``127.0.0.1`` and then use something like nginx as a reverse proxy for security purposes. Using gunicorn and the WSGI entry point is even better if you know how to do that. +* ``sqlite3 files.db < schema.sql`` * ``chmod +x run.py`` and then ``./run.py`` * ??? -* PROFIT (Hopefully) \ No newline at end of file +* PROFIT (Hopefully) + +## Production deployment + +* Clone the repo somewhere +* Set up a virtual environment for QuadFile +* ``pip install -r requirements.txt`` +* Do ``cp conf.py.sample conf.py`` +* Edit ``conf.py`` so that the information is correct +* ``sqlite3 files.db < schema.sql`` +* ``gunicorn wsgi:app -w 4 --bind 127.0.0.1:8282 --log-file $HOME/quadfile.log`` (Use supervisor to run it on boot if needed) +* Configure nginx and proxy_pass it to gunicorn +* ??? +* PROFIT (Hopefully)