Add new startup script

This commit is contained in:
Thomas Sileo
2019-09-08 16:57:00 +02:00
parent 7f4be2cbc2
commit db10d8bcb5
3 changed files with 30 additions and 0 deletions

1
run.sh
View File

@@ -1,5 +1,6 @@
#!/bin/bash
python -c "import logging; logging.basicConfig(level=logging.DEBUG); from core import migrations; migrations.perform()"
python -c "from core import indexes; indexes.create_indexes()"
python startup.py
(sleep 5 && curl -X POST -u :$POUSETACHES_AUTH_KEY $MICROBLOGPUB_POUSSETACHES_HOST/resume)&
gunicorn -t 600 -w 5 -b 0.0.0.0:5005 --log-level debug app:app