Commit ecfca618 authored by jocelyn's avatar jocelyn
Browse files

Document quickly production deployment.

parent ef6b359a
......@@ -121,11 +121,6 @@ Then launch service with:
You can visit with your browser at <http://127.0.0.1:8000/map/contribute>
Run production server
=====================
To be done
Drop the database
=================
......@@ -133,4 +128,16 @@ If you want to **reset all your data**.
$ rm db.sqlite3
What else ?
Run production server
=====================
(Pretty rough instructions. Feel free to submit patches)
1. Deploy it [like any django site](https://docs.djangoproject.com/en/1.11/howto/deployment/)
2. Customize [mandatory and optional settings](#set-up-configuration)
3. Customize `SECRET_KEY` to something realy radom. Hint: `python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print(repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))])))"`
4. Set *daily* crons for the two commands that take care of data expiration
handling (run them with `--help` for more information):
- `./manage.py delete_expired_contribs`
- `./manage.py send_expiration_reminders`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment