Innovenergy_trunk/csharp/App/SaliMax/run (Salimax0003).sh

34 lines
839 B
Bash
Raw Normal View History

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