deployment scripts

This commit is contained in:
Patrick Haßel 2025-02-28 08:33:32 +01:00
parent f9e94357c8
commit 088f086cef
2 changed files with 6 additions and 1 deletions

5
deploy-backend.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")" || exit 1
scp -P2222 -r ./target/Data.jar root@10.255.0.1:/srv/Data/update/ && git tag "DEPLOY-BACK---$(date +'%F---%H-%M-%S')" && ssh -p2222 root@10.255.0.1 systemctl restart Data.service

View File

@ -7,7 +7,7 @@
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"deploy": "scp -P2222 -r dist/angular/browser/* root@10.255.0.1:/srv/Data/www/"
"deploy": "scp -P2222 -r dist/angular/browser/* root@10.255.0.1:/srv/Data/www/ && git tag \"DEPLOY-FRONT---$(date +'%F---%H-%M-%S')\""
},
"private": true,
"dependencies": {