Files
MainSite/Gunicorn.sh
2019-12-09 23:57:26 +04:00

8 lines
360 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh -e
cd /home/elforcer/FlaskSite/MainSite/
echo "Подготовка..."
sh Prepare.sh
echo "Запускаем сервер Gunicorn с MainSite..."
gunicorn -w 4 --timeout 900 --keep-alive 900 --keyfile=/etc/letsencrypt/live/elforcer.udm.ru/privkey.pem --certfile=/etc/letsencrypt/live/elforcer.udm.ru/cert.pem --bind 0.0.0.0:8009 StartServer:app