After 15.10 update, I can't play Minecraft or FTB
711
After testing and working with the awesome people in the FTB IRC, we got it to work. We changed a few things around (like linking cacerts into java's binary), but what actually fixed it was this command. Here you go :)
sudo update-ca-certificates --fresh
Related videos on Youtube
Author by
Simon
Updated on September 18, 2022Comments
-
Simon almost 2 years
I'm trying to deploy an app on heroku but i can't if i use dotenv. This code doesn't work:
mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true }, () => { console.log("Connected to db successfully"); });
But this does:
mongoose.connect("mongodb+srv://test:[email protected]/ecommerce?retryWrites=true&w=majority", { useNewUrlParser: true }, () => { console.log("Connected to db successfully"); });
When i try to use dotenv heroku throws this error:
MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
-
075 over 8 yearsThank you! But I don't quite understand how to do it, even with the link you posted..
-
TheNano over 8 yearsI have updated my answer, I hope it helps you, it seems it was much easier than what we expected after all.
-
075 over 8 yearsThanks very much for taking your time to help me, but sadly, this still didn't work. I still have the same error. I might just have to reinstall my whole system. :|
-
075 over 8 yearsThank you very much. It works now! Many thanks to you and the FTB community!
-
Phil UK over 7 yearsWelcome to the site and thank you for your input. However, what you have added is nore of a comment then an answer. Next time, please add text like this in as a comment, not an answer
-
Chris over 2 yearsDoes this answer your question? How to add .env file or otherwise set environment variables in a Heroku app?