chore: add home_path to WebServer config and fix APP_HOME
This commit is contained in:
parent
8864086ddc
commit
072d50047c
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
// use std::sync::atomic::{AtomicUsize, Ordering};
|
||||||
use app_env::{
|
use app_env::{
|
||||||
AppStore,
|
AppStore,
|
||||||
appenv::AppEnv,
|
appenv::AppEnv,
|
||||||
|
|
@ -38,7 +38,7 @@ use reqenv::ReqEnv;
|
||||||
// #[macro_use]
|
// #[macro_use]
|
||||||
// extern crate kloud_entries_macro_derive;
|
// extern crate kloud_entries_macro_derive;
|
||||||
|
|
||||||
static WEBSERVER: AtomicUsize = AtomicUsize::new(0);
|
// static WEBSERVER: AtomicUsize = AtomicUsize::new(0);
|
||||||
const PKG_VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
const PKG_VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
||||||
// const PKG_VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
|
// const PKG_VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
|
||||||
const PKG_NAME: &'static str = env!("CARGO_PKG_NAME");
|
const PKG_NAME: &'static str = env!("CARGO_PKG_NAME");
|
||||||
|
|
@ -67,7 +67,7 @@ async fn up_web_server(webpos: usize) -> Result<()> {
|
||||||
format!("web: {}",&webpos),
|
format!("web: {}",&webpos),
|
||||||
format!("version: {}",PKG_VERSION),
|
format!("version: {}",PKG_VERSION),
|
||||||
format!("Authors: {}",PKG_AUTHORS),
|
format!("Authors: {}",PKG_AUTHORS),
|
||||||
).await;
|
);
|
||||||
zterton::init_app(&mut app_env,"").await.unwrap_or_else(|e|
|
zterton::init_app(&mut app_env,"").await.unwrap_or_else(|e|
|
||||||
panic!("Error loadding app environment {}",e)
|
panic!("Error loadding app environment {}",e)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue