README.md : add production deployment section

This commit is contained in:
Pierre-Alain TORET 2019-04-29 16:42:13 +02:00 committed by Tom Hacohen
parent ac2428af88
commit c1eec9e796

View File

@ -47,15 +47,24 @@ 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
Create yourself an admin user: Create yourself an admin user: