diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 96d08c3..181ee5a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -269,6 +269,13 @@ async fn serve(dev_mode: bool, address: &str, public_dir: Option<PathBuf>) -> Re println!("🌴 App name: {}", name.bright_yellow()); } + if let Ok(xdg_run_dir) = std::env::var("XDG_RUNTIME_DIR") { + let pid_path: PathBuf = PathBuf::from(xdg_run_dir); + let pid_path = pid_path.join("reluax.pid"); + + println!("🪪 PID File: {}", pid_path.display()); + } + println!("🛫 Starting server on address {}...", address); server::Server::serve(lua, address, public_dir).await } |
