added --config flag
Some checks failed
Run Integration Tests / test (push) Failing after 41s

This commit is contained in:
partisan 2025-02-21 20:29:43 +01:00
parent f213c958f4
commit f059715b41
3 changed files with 20 additions and 5 deletions

6
run.sh
View file

@ -4,6 +4,7 @@
SKIP_CONFIG=""
PORT=""
DOMAIN=""
CONFIG_FILE=""
BUILD_OUTPUT="qgato"
# Parse arguments
@ -17,6 +18,10 @@ while [ $# -gt 0 ]; do
DOMAIN=$2
shift 2
;;
--config)
CONFIG_FILE=$2
shift 2
;;
--skip-config-check)
SKIP_CONFIG="--skip-config-check"
shift
@ -51,6 +56,7 @@ fi
CMD="$SCRIPT_DIR/$BUILD_OUTPUT $SKIP_CONFIG"
[ -n "$PORT" ] && CMD="$CMD --port $PORT"
[ -n "$DOMAIN" ] && CMD="$CMD --domain $DOMAIN"
[ -n "$CONFIG_FILE" ] && CMD="$CMD --config $CONFIG_FILE"
echo "Starting application with command: $CMD"