minor control panel changes from server
parent
b8f65ecf9d
commit
8c334ec751
|
|
@ -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/"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
sudo -u ubuntu bash -c "git pull"
|
||||||
|
|
@ -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");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue