# nodebb + heroku + mongolab

• Nah, it's just that none of the guide or manuals work. I have to figure it all out by myself.

It's also quite some change from eg. Wordpress, where you have a 1-click or 3–minute web launcher. I'm very unfamiliar with having to install 5–6 types of new software on my laptop just in order to set up a web–only forum. Doesn't seem to be necessary, really.

• @meh said:

Nah, it's just that none of the guide or manuals work. I have to figure it all out by myself.

It's also quite some change from eg. Wordpress, where you have a 1-click or 3–minute web launcher. I'm very unfamiliar with having to install 5–6 types of new software on my laptop just in order to set up a web–only forum. Doesn't seem to be necessary, really.

You seem to be taking a very negative stance on NodeBB based on your inability to install it. Most (infact, near all) people on this board have managed to install NodeBB perfectly fine.

Also, cut the developers (and us) some slack. NodeBB is free, open source software, and you come to the forums acting like you're entitled to immediate help. If you want to get it to work, please provide error logs where they appear, else we can't help. Please reconsider your attitude, and provide some error logs. Once you've got those things down, we can help you fix your problem(s) in regards to installing NodeBB.

• Or if you really want get it set up in the meantime, use it with redis, like the docs suggest

• The best method to get on with your way is to detail every step you've taken (along with the log output from that step)

This way we can look at ex. Step 3 and go "aha! That's where it broke" etc.

• I'm sorry I'm me. I need to set up the DB connection to MongoLab. I've done the point and click thing for my latest app. Should I run node app --setup before entering DB user, password etc?

• My error logs are often flagged as 'spam', BTW:

gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Library/node/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "/usr/local/bin/node" "/Library/node/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Library/node/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok

• Point 10 is a hard one to guess:

1. Add the following two packages to the dependencies section of your package.json:

"dependencies": {
...
"redis": "~0.10.1",
"connect-redis": "~2.0.0"
},
"devDependencies": {

I don't use redis, but mongo.

• Once you've gotten the right deps set up (ex. MongoDB or redis, etc)

./nodebb setup should get you on your way. As mentioned previously paste your logs if it doesn't go as expected

• Point 9 was "node app --setup", did I do wrong in trusting that?

• Sorry, posting on mobile (perhaps I should write an alert that tells the user a new post has been created... It works on desktop, not on mobile yet)

Can you post the step by step log I mentioned earlier?

• I'm at point 10, and got the above cited errors from point 9 on the list.

I'm wondering what to write in step 10, as obviously I can't follow the manual and enter redis stuff.

• Yeah I guess you're running into uncharted territory. The guide is for redis not mongo. I might clear some time next week to figure it out (if you're patient enough to wait) and write a new guide.

The other option is to contact heroku and ask, I know that they're pretty responsive on helping nbb installs.

• Skipping Step 10 as I don't know what to write there. Proceeding with 12, 13 etc. Crossing my fingers and hoping for the best.

• @psychobunny said:

(if you're patient enough to wait)

TBH, I was hoping to get it done in 24 hours with no sleep.

• @reid said:

You seem to be taking a very negative stance on NodeBB based on your inability to install it.

My first impression is that it IS impossible to install it. Most people would probably have resigned after 12–18 hours of not getting it to work. First impressions matter. I guess most OSX users wouldn't be able to change their drive to a different OSX version either, as according to the instructions ONLY Mavericks macs can install this forum (within the OSX family).

I'd say I've been very, very patient and enduring.

• @meh said:

@psychobunny said:

(if you're patient enough to wait)

TBH, I was hoping to get it done in 24 hours with no sleep.

It's doable so up to you if you value sleep if you figure it out it would be great if you'd write / edit the heroku guide

• I'll see what I can do. In any case, I could perhaps provide some input to your upcoming OSX / Heroku / Mongolab chapter

Edit: My final input for your OSX install guide is in the top post. I would advice to make the installation meant for the Cloud platform independent of the user's choice of computer. He wants to use this thing in the cloud, simple as that, and not at home on his little machine.

• Everything about the Mongo DB files and settings are still very unclear. Plus there are no hints as to what to do or try, just faffing about and hoping for the best. I don't even have a mongodb.conf file anywhere on my computer. Maybe stretching into the 36 hours straight.

"mongo": "~0.10.1",
"connect-mongo": "~2.0.0"


to package.json, but I have no idea what I'm doing or why that would work.

• Guess it didn't like that Mongo version number guestimate?

npm ERR! No compatible version found: connect-mongo@~2.0.0

• npm install

Just adding packages to package.json doesn't install them.

3

4

7

7

6
| |