minor control panel changes from server

asyncversion
Anton Franzluebbers 2022-03-26 19:06:19 +00:00
parent b8f65ecf9d
commit 8c334ec751
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{ {
"port": 8080, "port": 8080,
"log_file": "/home/ntsfranz/Documents/VelNetServerRust/nohup.out", "log_file": "/home/ubuntu/VelNetServerRust2/nohup.out",
"server_dir": "/home/ntsfranz/Documents/VelNetServerRust/" "server_dir": "/home/ubuntu/VelNetServerRust2/"
} }

View File

@ -0,0 +1 @@
sudo -u ubuntu bash -c "git pull"

View File

@ -85,8 +85,8 @@ async fn restart_server() -> HttpResponse {
#[get("/git_pull")] #[get("/git_pull")]
async fn git_pull() -> HttpResponse { async fn git_pull() -> HttpResponse {
let output = Command::new("git") let output = Command::new("sh")
.arg("pull") .arg("git_pull.sh")
.output() .output()
.expect("failed to execute process"); .expect("failed to execute process");