mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-02 17:28:44 +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
|
||||
|
||||
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
|
||||
watch_file ${config_file}
|
||||
dotenv ${config_file}
|
||||
fi
|
||||
secrets_file="${config_file_path}/secrets.env"
|
||||
if [[ -f ${secrets_file} ]]; then
|
||||
watch_file ${secrets_file}
|
||||
dotenv ${secrets_file}
|
||||
fi
|
||||
}
|
||||
|
||||
env_file_watch
|
||||
|
|
Loading…
Reference in a new issue