Properly parametrize deploy script
This commit is contained in:
parent
b37fd90098
commit
b361959f53
|
@ -2,7 +2,6 @@ using SQLite;
|
|||
|
||||
namespace InnovEnergy.App.Backend.DataTypes;
|
||||
|
||||
|
||||
public class Installation : TreeNode
|
||||
{
|
||||
public String Location { get; set; } = "";
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue