]> git.gir.st - subscriptionfeed.git/blob - config/startup.sh
make webhook a blueprint/standalone-hybrid
[subscriptionfeed.git] / config / startup.sh
1 #!/bin/sh
2
3 export CONFIG_DIR=/opt/yt/config/
4 export VENV_ROOT=/opt/yt/venv/
5 export MOD_DIR=/opt/yt/
6 export APP_DIR=/opt/yt/app/
7
8 # iptables -A INPUT -p tcp -m multiport --destination-ports 8800,8801 -j ACCEPT
9
10 . "$VENV_ROOT/bin/activate"
11 export YT_CONFIG="$CONFIG_DIR/config.ini"
12 gunicorn --config="$CONFIG_DIR/gunicorn-frontend-config.py" --chdir="$MOD_DIR" --daemon app:app
13 gunicorn --config="$CONFIG_DIR/gunicorn-webhooks-config.py" --chdir="$APP_DIR" --daemon 'webhooks:app()'
Imprint / Impressum