minor control panel changes from server
parent
b8f65ecf9d
commit
8c334ec751
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"port": 8080,
|
||||
"log_file": "/home/ntsfranz/Documents/VelNetServerRust/nohup.out",
|
||||
"server_dir": "/home/ntsfranz/Documents/VelNetServerRust/"
|
||||
"log_file": "/home/ubuntu/VelNetServerRust2/nohup.out",
|
||||
"server_dir": "/home/ubuntu/VelNetServerRust2/"
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
sudo -u ubuntu bash -c "git pull"
|
||||
|
|
@ -85,8 +85,8 @@ async fn restart_server() -> HttpResponse {
|
|||
#[get("/git_pull")]
|
||||
async fn git_pull() -> HttpResponse {
|
||||
|
||||
let output = Command::new("git")
|
||||
.arg("pull")
|
||||
let output = Command::new("sh")
|
||||
.arg("git_pull.sh")
|
||||
.output()
|
||||
.expect("failed to execute process");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue