Change sm on #7

Took 10 minutes

Took 1 second
This commit is contained in:
Tobias Hopp 2022-12-02 12:10:17 +01:00
parent 456cb70b70
commit 2a63cf9238
2 changed files with 4 additions and 3 deletions

View File

@ -120,7 +120,7 @@ Type=simple
Restart=always
RestartSec=1s
User=itender
ExecStartPre=sh -c "git pull --quiet || true"
ExecStartPre=sleep 3
WorkingDirectory=/home/itender/itender/
ExecStart=/usr/bin/yarn run start
StandardOutput=append:/var/log/itender.log
@ -130,6 +130,8 @@ StandardError=append:/var/log/itender.log
WantedBy=multi-user.target
EOT
#sh -c "git pull --quiet || true"
echo "Activating systemctl daemons..."
systemctl daemon-reload

View File

@ -321,10 +321,9 @@ export class iTender {
}
}
resolve();
log("Drinks refreshed!");
await WebSocketHandler.sendDrinks();
resolve();
});
}