I setup nodebb on heroku following below tut nodebb.readthedocs. io/en/latest/installing/cloud/heroku.html
Nodebb working well locally. But on heroku I get application error.
Here is the log
http:// pasted. co/e0f98486
changed link as askmi spam filter not allowing to post links
Upgraded NodeBB To V1.4.2 Errors
I upgraded my version of both Node.Js and NodeBB to 6.9 and 1.4.2 respectively.
I encountered a variety of problems that I needed to get my head around.
The forum is SSL only, and load balanced using NGINX.
This file here was accessing
When data.config was undefined. So obviously NPE and crashed.
if(properties && data.config)
To mitigate this problem.
Once this had been sorted, I then was able to reach my forum, but none of the pages would load.
After looking at this I noticed NodeBB was serving up pages from / then appending the config.json url then the path.
Obviously this led to:
This didn't exist and thus NPE crash.
So hackily I've set my URL to
So now resources look like they are being referenced, albeit hackily
Is this a bug, or is this something I have set up incorrectly.
I've posted this here so that others can find it if they need to.
@Calum122 post your
config.jsonand Nginx config
@pichalite Thank you for the response.
That was most peculiar, but I reset the config.json to be how it was and it stopped having this error.
Besides I still think it's best to check data.config, before extracting data.config.loggedin anyway.