add configuration file in production
This commit is contained in:
@@ -3,4 +3,8 @@ pub mod mrproxy;
|
|||||||
pub mod server;
|
pub mod server;
|
||||||
pub(in crate::config) mod utils;
|
pub(in crate::config) mod utils;
|
||||||
|
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
pub const CONFIG_PATH: &str = "/etc/mrdeploy/config.toml";
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
pub const CONFIG_PATH: &str = "config/config.toml";
|
pub const CONFIG_PATH: &str = "config/config.toml";
|
||||||
|
|||||||
Reference in New Issue
Block a user