I’ve deployed my node app via github but i get error in the log
this is the repo link:
https://github.com/victornice/knowledge-base
Thank you
I’ve deployed my node app via github but i get error in the log
this is the repo link:
https://github.com/victornice/knowledge-base
Thank you
Does your app run locally and it’s just crashing on Heroku after being deployed?
Your app.use(express.static) statement looks sort of different from how I usually write it.
You might want to try:
// Point static path to public
app.use(express.static(path.join(__dirname, 'public')));
I see. Are you sure you have all your dependencies in the package.json file that’s checked into the server? It’s failing at the start of the application.
Also, I am not sure you are seeing the real error message. Try typing heroku logs -n 200 in your console and look for a more detailed message regarding why your application is failing. That usually helps me when trying to debug why applications are crashing on heroku.