hassio-addons/docmaster/start.sh

12 lines
224 B
Bash
Raw Normal View History

2021-06-30 20:17:57 +00:00
#!/bin/sh
set -e
CONFIG_PATH=/data/options.json
PRINTER_HOST=$(jq --raw-output ".printer_host" $CONFIG_PATH)
2021-06-30 20:32:11 +00:00
echo "PRINTER_HOST: $PRINTER_HOST"
2021-06-30 20:17:57 +00:00
cd /app
2021-06-30 20:32:11 +00:00
export PRINTER_HOST
2021-06-30 20:17:57 +00:00
gunicorn app:app --bind 0.0.0.0:6000 --workers=2