fix: repo url and config env param
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Aravinth Manivannan 2022-09-08 18:14:27 +05:30
parent ab71d73455
commit efb0e147fd
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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