]> git.gir.st - subscriptionfeed.git/blob - config/startup.sh
schema for users table
[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 APP_DIR=/opt/yt/app/
6
7 # iptables -A INPUT -p tcp -m multiport --destination-ports 8800,8801 -j ACCEPT
8
9 . "$VENV_ROOT/bin/activate"
10 export YT_CONFIG="$CONFIG_DIR/config.ini"
11 gunicorn --config="$CONFIG_DIR/gunicorn-frontend-config.py" --chdir="$APP_DIR" --daemon frontend:app
12 gunicorn --config="$CONFIG_DIR/gunicorn-webhooks-config.py" --chdir="$APP_DIR" --daemon webhooks:app
Imprint / Impressum