Properly parametrize deploy script

This commit is contained in:
ig 2023-07-07 09:38:29 +02:00
parent b37fd90098
commit b361959f53
3 changed files with 3 additions and 6 deletions

View File

@ -2,7 +2,6 @@ using SQLite;
namespace InnovEnergy.App.Backend.DataTypes;
public class Installation : TreeNode
{
public String Location { get; set; } = "";

View File

@ -153,8 +153,6 @@ public static class Program
var installations = await vrm.GetInstallations();
var installationName = installations
.Where(i => i.UniqueId == uniqueId)
.Select(i => i.Name)

View File

@ -18,17 +18,17 @@ echo -e "\n============================ Deploy ============================\n"
rsync -v \
./bin/Release/$dotnet_version/linux-x64/publish/* \
ie-entwicklung@10.2.4.33:~/salimax
$username@$salimax_ip:~/salimax
echo -e "\n============================ Restart Salimax sevice ============================\n"
ssh -tt \
ie-entwicklung@10.2.4.33 \
$username@$salimax_ip \
sudo systemctl restart salimax.service
echo -e "\n============================ Print service output ============================\n"
ssh -tt \
ie-entwicklung@10.2.4.33 \
$username@$salimax_ip \
journalctl -f -u salimax.service