fix: repo url and config env param
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
ab71d73455
commit
efb0e147fd
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
debug = true
|
||||
source_code = "https://github.com/realaravinth/forms"
|
||||
source_code = "https://git.batsense.net/librepages/forms"
|
||||
|
||||
[server]
|
||||
# Please set a unique value, your mCaptcha instance's security depends on this being
|
||||
|
|
|
@ -80,7 +80,7 @@ impl Settings {
|
|||
const CURRENT_DIR: &str = "./config/default.toml";
|
||||
const ETC: &str = "/etc/lpforms/config.toml";
|
||||
|
||||
if let Ok(path) = env::var("LPFORMS") {
|
||||
if let Ok(path) = env::var("LPFORMS_CONFIG") {
|
||||
s.merge(File::with_name(&path))?;
|
||||
} else if Path::new(CURRENT_DIR).exists() {
|
||||
// merging default config from file
|
||||
|
|
Loading…
Reference in a new issue