Initial commit: update3
This commit is contained in:
10
hmi-scripts/deploy-war.sh
Normal file
10
hmi-scripts/deploy-war.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
TARGET="${1:-}"
|
||||
if [[ -z "$TARGET" || ! -f "$TARGET/backend/pom.xml" ]]; then echo 'Usage: deploy-war.sh /path/to/Workbench' >&2; exit 2; fi
|
||||
command -v npm >/dev/null || { echo 'npm fehlt' >&2; exit 2; }
|
||||
command -v mvn >/dev/null || { echo 'mvn fehlt' >&2; exit 2; }
|
||||
(cd "$TARGET/hmi-frontend" && npm install && npm run build)
|
||||
(cd "$TARGET/backend" && mvn clean package)
|
||||
echo 'WAR wurde gebaut. Bitte zunächst nach DEV deployen und HMI-Schema / Rollen prüfen.'
|
||||
find "$TARGET/backend/target" -maxdepth 1 -name '*.war' -printf '%p\n'
|
||||
Reference in New Issue
Block a user