Deploying Node.js to Heroku
Deploying Node.js to Heroku was mostly a smooth experience. However I still got a 404 after Heroku claims that the deployment was successful.
After some digging, it turns out that I needed to have a “Procfile” created to start Node on Heroku. So, under the root folder (same folder as where package.json lives), create a file called “Procfile” (no file extension) and paste the following in:
web: node index.js
Be sure to replace “index.js” with your main file name if it’s different, deploy again and you should be good to go!!