mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-17 08:32:41 +00:00
fix: update .envrc to use prop env path
This commit is contained in:
parent
30cb04ccb7
commit
28a5c208b5
8
.envrc
8
.envrc
|
@ -3,11 +3,17 @@ watch_file deps.nix
|
||||||
watch_file props.nix
|
watch_file props.nix
|
||||||
|
|
||||||
function env_file_watch {
|
function env_file_watch {
|
||||||
config_file="config/${MIX_ENV:-dev}/public.env"
|
config_file_path="config/${MIX_ENV:-dev}"
|
||||||
|
config_file="${config_file_path}/.env"
|
||||||
if [[ -f ${config_file} ]]; then
|
if [[ -f ${config_file} ]]; then
|
||||||
watch_file ${config_file}
|
watch_file ${config_file}
|
||||||
dotenv ${config_file}
|
dotenv ${config_file}
|
||||||
fi
|
fi
|
||||||
|
secrets_file="${config_file_path}/secrets.env"
|
||||||
|
if [[ -f ${secrets_file} ]]; then
|
||||||
|
watch_file ${secrets_file}
|
||||||
|
dotenv ${secrets_file}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
env_file_watch
|
env_file_watch
|
||||||
|
|
Loading…
Reference in a new issue