Recognition

No awards yet.

Posts

2 Posts
  • Published Answer

    MONGO_URI is undefined in the droplet (Ubuntu 20.04)

    I solved the problem. I had put the .env file in .gitignore. Therefore .envfile was not available in the droplet…
    Accepted Answer: I solved the problem. I had put the .env file in .gitignore. Therefore .envfile was not available in the droplet…
    By pgcim14hemant
  • Published Question

    MONGO_URI is undefined in the droplet (Ubuntu 20.04)

    I am trying to deploy my MERN app to a Digital Ocean droplet(Ubuntu server 20.04). I cloned my GitHub repo, ran npm i in order to install the packages. Then when I started the server using npm start, I am getting an e...
    Accepted Answer: I solved the problem. I had put the .env file in .gitignore. Therefore .envfile was not available in the droplet. I created a .env file using vim and now everything works fine.
    2 By pgcim14hemant DigitalOcean Droplets