Ask coding questions

← Back to all posts
Warning: REPLIT_DB_URL does not exist, are we running on repl.it? Database will not function.
h
pythonb5 (42)

This is so confusing - my database won't work on repl.run. What's going on?

Comments
hotnewtop
Coder100 (17045)

the .env file is deleted when repl.it does not:

  • Know if the person accessing it is the owner (.repl.run)
  • Knows the person is not the owner (embeds)

That means REPLIT_DB_URL gets deleted.

The only fix would be to make your program a web program.

EpicGamer007 (1618)

Sorry, you cannot use repldb with repl.run :(. At least I think so

pythonb5 (42)

@EpicGamer007 It's still showing up in the console (not on repl.run) for other people (just not me).

Coder100 (17045)

Only if they are invited @pythonb5