|
@@ -136,10 +136,16 @@ 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 really random. 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):
|
|
|
+1. Make sure to set `DJANGO_SETTINGS_MODULE` environment variable to
|
|
|
+ `wifiwithme.settings.prod`, eg:
|
|
|
+
|
|
|
+ $ export DJANGO_SETTINGS_MODULE=wifiwithme.settings.prod
|
|
|
+
|
|
|
+2. Deploy it [like any django site](https://docs.djangoproject.com/en/1.11/howto/deployment/)
|
|
|
+3. Customize [mandatory and optional settings](#set-up-configuration)
|
|
|
+4. Customize `SECRET_KEY` to something really random. 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))])))"
|
|
|
+5. Set *daily* crons for the two commands that take care of data expiration
|
|
|
+ handling. (do not forget `DJANGO_SETTINGS_MODULE`, and use the `--help` of
|
|
|
+ these commands)
|
|
|
- `./manage.py delete_expired_contribs`
|
|
|
- `./manage.py send_expiration_reminders`
|