Fix the run scripts
This commit is contained in:
parent
7d1544f34a
commit
ca7d58ff0e
|
@ -2,7 +2,7 @@
|
|||
|
||||
dotnet_version='net6.0'
|
||||
salimax_ip= '10.2.3.104'
|
||||
username='ie-entwicklung@'
|
||||
username='ie-entwicklung'
|
||||
|
||||
set -e
|
||||
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
#!/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/* \
|
||||
ie-entwicklung@10.2.4.33:~/salimax
|
||||
|
||||
echo -e "\n============================ Restart Salimax sevice ============================\n"
|
||||
|
||||
ssh -tt \
|
||||
ie-entwicklung@10.2.4.33 \
|
||||
sudo systemctl restart salimax.service
|
||||
|
||||
|
||||
echo -e "\n============================ Print service output ============================\n"
|
||||
|
||||
ssh -tt \
|
||||
ie-entwicklung@10.2.4.33 \
|
||||
journalctl -f -u salimax.service
|
|
@ -1,9 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
dotnet_version='net6.0'
|
||||
salimax_ip= '10.2.3.115'
|
||||
username='ie-entwicklung@'
|
||||
salimax_ip='10.2.3.115'
|
||||
username='ie-entwicklung'
|
||||
|
||||
set -e
|
||||
|
||||
|
|
Loading…
Reference in New Issue