mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
5 lines
350 B
Bash
Executable file
5 lines
350 B
Bash
Executable file
#!/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()"
|
|
(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
|