Browse Source

dev: absolute path dotenv (#26372)

josh 3 years ago
parent
commit
109522ac37
1 changed files with 3 additions and 3 deletions
  1. 3 3
      .envrc

+ 3 - 3
.envrc

@@ -111,9 +111,9 @@ export SENTRY_UI_HOT_RELOAD=1
 
 ### You can override the exported variables with a .env file
 # All exports should happen before here unless they're safeguarded (see devenv error reporting below)
-if [ -f '.env' ]; then
-    debug "Loading variables from .env file..."
-    dotenv .env
+if [ -f "${HERE}/.env" ]; then
+    debug "Loading variables from ${HERE}/.env"
+    dotenv "${HERE}/.env"
 fi
 
 ## Notify of reporting to Sentry