forked from cadey/xesite
fix production
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
c51ffae976
commit
dd445722fe
|
@ -45,7 +45,7 @@ mi = { path = "./lib/mi" }
|
|||
patreon = { path = "./lib/patreon" }
|
||||
|
||||
# os-specific dependencies
|
||||
[target.'cfg(linux)'.dependencies]
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
sdnotify = { version = "0.1", default-features = false }
|
||||
|
||||
[build-dependencies]
|
||||
|
|
|
@ -207,7 +207,7 @@ async fn main() -> Result<()> {
|
|||
.with(warp::log(APPLICATION_NAME))
|
||||
.recover(handlers::rejection);
|
||||
|
||||
#[cfg(linux)]
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
match sdnotify::SdNotify::from_env() {
|
||||
Ok(ref mut n) => {
|
||||
|
@ -229,7 +229,8 @@ async fn main() -> Result<()> {
|
|||
})?;
|
||||
}
|
||||
Err(why) => error!("not running under systemd with Type=notify: {}", why),
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
warp::serve(site)
|
||||
.run((
|
||||
|
|
Loading…
Reference in New Issue