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)