open-law/start_server.sh

8 lines
161 B
Bash
Raw Normal View History

2023-04-20 13:10:16 +00:00
sleep 2
echo Run db upgrade
poetry run flask db upgrade
# echo Run app
# flask run -h 0.0.0.0
echo Run app server
poetry run gunicorn -w 4 -b 0.0.0.0 'wsgi:app'