Ask coding questions

← Back to all posts
What is environment variables' path?
NastyPigz (0)

I'm trying to reload the environment variables.
But I can't do it.
One of my friends succeed on his computer, but I want to do it on replit, and it requires a path for the .env file

Comments
hotnewtop
Coder100 (18930)

no .env is not a file, and what do you mean reloading environment variables? Just fork the repl, and create the secrets in the environment secrets (lock symbol).

DynamicSquid (5027)

Like where Replit store's it's enviroment variables?

NastyPigz (0)

@DynamicSquid I know where it is, but I need the path to it. like \Users\user .env

DynamicSquid (5027)

@NastyPigz Well, .env files are actually deprecated. But shouldn't that just be the root directory?

NastyPigz (0)

@DynamicSquid so I just put
path='.env'
?

NastyPigz (0)

@NastyPigz but for some reason this isn't a valid path

DynamicSquid (5027)

@NastyPigz Why are you trying to get the path?