Parcourir la source

Document quickly production deployment.

Jocelyn Delalande il y a 7 ans
Parent
commit
ecfca618ac
1 fichiers modifiés avec 13 ajouts et 6 suppressions
  1. 13 6
      README.md

+ 13 - 6
README.md

@@ -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`