This commit is contained in:
parent
f213c958f4
commit
f059715b41
3 changed files with 20 additions and 5 deletions
6
run.sh
6
run.sh
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue