microblog.pub/run.sh

7 lines
368 B
Bash
Raw Permalink Normal View History

2018-09-01 04:23:19 -05:00
#!/bin/bash
2019-08-01 14:44:35 -05:00
python -c "import logging; logging.basicConfig(level=logging.DEBUG); from core import migrations; migrations.perform()"
python -c "from core import indexes; indexes.create_indexes()"
2019-09-08 09:57:00 -05:00
python startup.py
(sleep 5 && curl -X POST -u :$POUSETACHES_AUTH_KEY $MICROBLOGPUB_POUSSETACHES_HOST/resume)&
2019-04-08 09:54:07 -05:00
gunicorn -t 600 -w 5 -b 0.0.0.0:5005 --log-level debug app:app