Revert "updated 'run.sh' and 'run.bat' so the process name is 'qgato'"
Some checks failed
Run Integration Tests / test (push) Has been cancelled
Some checks failed
Run Integration Tests / test (push) Has been cancelled
This reverts commit 5b90a372a1
.
This commit is contained in:
parent
5b90a372a1
commit
8bb6fdc03d
2 changed files with 4 additions and 23 deletions
13
run.sh
13
run.sh
|
@ -51,21 +51,12 @@ if $BUILD_MODE; then
|
|||
fi
|
||||
else
|
||||
# Run mode
|
||||
CMD="./$BUILD_OUTPUT $SKIP_CONFIG"
|
||||
CMD="go run $GO_FILES $SKIP_CONFIG"
|
||||
[ -n "$PORT" ] && CMD="$CMD --port $PORT"
|
||||
[ -n "$DOMAIN" ] && CMD="$CMD --domain $DOMAIN"
|
||||
|
||||
if [ ! -f "$SCRIPT_DIR/$BUILD_OUTPUT" ]; then
|
||||
echo "Executable not found. Building it first..."
|
||||
go build -o "$SCRIPT_DIR/$BUILD_OUTPUT" $GO_FILES
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Build failed! Unable to run the application."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Starting application with command: $CMD"
|
||||
|
||||
# Run the executable
|
||||
# Run the Go program with the constructed command
|
||||
eval $CMD
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue