Blog
Deploy Node JS application on Heroku
Anup

Anup

Jun 21, 2022

Deploy Node JS application on Heroku

Once your Node JS application is ready to deploy, create a Procfile file on backend folder and add web: node <your main filename>. Make sure to include "start": "node <your main filename>" on package.json. Specify PORT by using process.env.PORT. Sign into Heroku website and click on create new application and give name to application. Follow the on screen instruction and add your .env variable by clicking on Settings and Reveal config var. Once your app is deployed, you'll receive your deployed app url on terminal.

Anup

Anup

Hi welcome to my blog

Drop Comments

related

Categories