Deamon + minor update
This commit is contained in:
1948
Cargo.lock
generated
Normal file
1948
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -218,10 +218,9 @@ async fn main() {
|
||||
let daemonize = Daemonize::new()
|
||||
.pid_file("/tmp/test.pid") // Every method except `new` and `start`
|
||||
.chown_pid_file(true) // is optional, see `Daemonize` documentation
|
||||
.working_directory("/tmp") // for default behaviour.
|
||||
.working_directory("/home/aindustries/vote-rllhc/") // for default behaviour.
|
||||
.stdout(stdout) // Redirect stdout to `/tmp/daemon.out`.
|
||||
.stderr(stderr); // Redirect stderr to `/tmp/daemon.err`.
|
||||
|
||||
match daemonize.start() {
|
||||
Ok(_) => {
|
||||
let _ = dotenv();
|
||||
@@ -244,7 +243,8 @@ async fn main() {
|
||||
println!("Failed to serve connection: {:?}", err);
|
||||
}
|
||||
});
|
||||
}},
|
||||
}
|
||||
},
|
||||
Err(e) => eprintln!("Error, {}", e),
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,9 @@ body {
|
||||
margin:auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
height: calc(100vh - 60px);
|
||||
height: calc(100dvh - 60px);
|
||||
}
|
||||
|
||||
.app > h2 {
|
||||
|
||||
BIN
vote.db-shm
BIN
vote.db-shm
Binary file not shown.
BIN
vote.db-wal
BIN
vote.db-wal
Binary file not shown.
Reference in New Issue
Block a user