README.md : add production deployment section

master
Pierre-Alain TORET 6 years ago committed by Tom Hacohen
parent ac2428af88
commit c1eec9e796

@ -47,14 +47,23 @@ Now you can initialise our django app
./manage.py migrate ./manage.py migrate
``` ```
And you are done! You can now either run the debug server just to see everything works as expected by running: And you are done! You can now run the debug server just to see everything works as expected by running:
``` ```
./manage.py runserver 0.0.0.0:8000 ./manage.py runserver 0.0.0.0:8000
``` ```
Using the debug server in production is not recommended, so you should configure your webserver to serve Using the debug server in production is not recommended, so please read the following section for a proper deployment.
etesync (with TLS). An example on how to do so with nginx can be found [here](http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html).
# Production deployment
EteSync is based on Django so you should :
* either follow the instructions of the Django project [here](https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/).
* either/or follow the instructions from uwsgi [here](http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html).
The webserver should also be configured to serve EteSync using TLS.
There are more details about a proper production setup in the [wiki](https://github.com/etesync/server-skeleton/wiki).
# Usage # Usage

Loading…
Cancel
Save