Installing on Heroku
We are trying to set up a NodeBB instance on Heroku, and connect it to an existing Mongo database. It's not going ever to be an incredibly high traffic site so this is the simplest way to go.
When I get to the step described in the documentation,
node app --setup
I get an error:
module.js:328 throw err; ^ Error: Cannot find module 'nconf' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/roger/Projects/rpa-nodebb/app.js:28:13) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10)
Yeah those docs are old. Instead of
node app --setupyou should use
@pitaj Thanks. I actually figured that part out. I managed to get it to build on heroku by removing package.json from .gitignore and pushing, but I could not access the online installation page (:4567), Heroku said the app failed to connect to $PORT within 60 seconds.
After that I tried removing config.js from .gitignore, but that hasn't worked either.
@pitaj Followup to last message ... turns out Heroku does not allow access through any other port than the one it gives you. Is this an insurmountable obstacle and I should look into other hosting, or is there a workaround?