-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongoDB #68
Comments
Yes, you will have to upgrade Mongo for use in production. What is your question, exactly? Also, it looks like you don't have an entry |
Hello, Ethan I'm getting the same
Is my syntax wrong? |
Hi, @Rikazavr, is that the entire contents of your module.exports = {
mongo: {
development: { /*...*/ },
production: { /*...*/ },
},
} |
Yes, now I got it.... Thank you for the quick response! |
I get above message when I run the chapter 13 example. |
@neihcnim what version of Node are you using? I'm afraid I have not been maintaining this repo (you'll have to wait for the 2nd edition for an updated one), and it hasn't kept up to date with the changes in Node. I just tried, and I was able to run the ch13 examples with Node 4. |
I am using node js 8.11.2 After erasing my meadowlark.js and copying the original one. I hit a new error
I solved this by checking for null with
After solving this, I was able to start meadowlark.js . The next thing I need to do was place the schema name Vacation in the connection string. So far ch13 example is working for now. |
Glad it's working for you now, @neihcnim ...sorry for the issues you've experienced. |
"C:\Program Files (x86)\JetBrains\WebStorm 11.0.2\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" meadowlark.js
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
!!! MONGOOSE WARNING !!!
This is an UNSTABLE release of Mongoose.
Unstable releases are available for preview/testing only.
DO NOT run this in production.
c:\Users\xvinc\Downloads\Compressed\web-development-with-node-and-express-master\ch13\meadowlark.js:89
var sessionStore = new MongoSessionStore({ url: credentials.mongo[app.get('env')].connectionString });
^
TypeError: Cannot read property 'development' of undefined
at Object. (c:\Users\xvinc\Downloads\Compressed\web-development-with-node-and-express-master\ch13\meadowlark.js:89:66)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:980:3
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: