Innovenergy_trunk/csharp/App/SaliMax/run (SalimnaxProto Meiringe...

36 lines
856 B
Bash
Raw Normal View History

2023-06-13 11:01:48 +00:00
#!/bin/bash
dotnet_version='net6.0'
salimax_ip= '10.2.3.115'
username='ie-entwicklung@'
set -e
echo -e "\n============================ Build ============================\n"
2023-06-26 09:59:08 +00:00
dotnet publish \
2023-06-13 11:01:48 +00:00
./SaliMax.csproj \
2023-06-26 09:59:08 +00:00
-p:PublishTrimmed=false \
2023-06-13 11:01:48 +00:00
-c Release \
-r linux-x64
echo -e "\n============================ Deploy ============================\n"
rsync -v \
./bin/Release/$dotnet_version/linux-x64/publish/* \
ie-entwicklung@10.2.3.115:~/salimax
echo -e "\n============================ Restart Salimax sevice ============================\n"
ssh -tt \
ie-entwicklung@10.2.3.115 \
sudo systemctl restart salimax.service
echo -e "\n============================ Print service output ============================\n"
ssh -tt \
ie-entwicklung@10.2.3.115 \
journalctl -f -u salimax.service