Deployment fails every time. Unable to track the reason for the same.
Also I have placed the MongoDB connection string in a .env file. Locally everything’s working.
Does deployment fail if Mongoose.connect (connection to MongoDB cloud) fails?
Deployment fails every time. Unable to track the reason for the same.
Also I have placed the MongoDB connection string in a .env file. Locally everything’s working.
Does deployment fail if Mongoose.connect (connection to MongoDB cloud) fails?
Hey,
How is the .env file loaded in your code? Your service errors seems to indicate that no environment variables could be retrieved.
Regards.
Jérémy, Render Support
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.