diff --git a/rot.service b/rot.service new file mode 100644 index 0000000..abbec21 --- /dev/null +++ b/rot.service @@ -0,0 +1,16 @@ +[Unit] +Description=Rot + +[Service] +User=root +Group=root +WorkingDirectory=/home/k004373/rot +Environment="ROCKET_ENV=prod" +Environment="ROCKET_ADDRESS=127.0.0.1" +Environment="ROCKET_PORT=8001" +Environment="ROCKET_LOG=info" +ExecStart=/home/k004373/rot/target/release/rot + +[Install] +WantedBy=multi-user.target + diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..578b8d3 --- /dev/null +++ b/update.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +git pull +cargo b -r +sudo systemctl restart rot