Give a Query

*Our experts are at hand to serve you

You Can call us on

+91-120-4106877 +1-408-878-6816 +61-29-0991719

You Can call us on

+91-120-4106877 +1-408-878-6816 +61-29-0991719

How to Deploy Angular 6 App on Heroku

By Anuj Goel | December 10, 2019 |

Hi, Today I will tell you about how to deploy your angular app on Heroku server. So, before starting this concept the first step is to create the angular app and set up git in the app. If you don’t know about how to create an angular app with git then refer this link:

Setup angular and github

Now, after setting up the project, you need to go to the Heroku website and sign up for a new account. The link for Heroku is given below.


Log in to your Heroku account from this secure Heroku login page.

After opening your account, go to the new button to create a new app on Heroku.

Now, fill the name for your app and click on button Create app:

After connecting with your repository you will find like this:

Ok, So before deploying your code you have to do some changes in your app code. Follow these steps:

  1. open cmd in your app folder and install express:

2. In your app root folder create a file named server.js and write the following code:

3. Go to package.json file and do the following changes:

In start we have changed ng serve to node server.js  and  postinstall.

4. Now commit your changes with these steps:

Now just push to master branch of Heroku repository which you can get from setting tab. This will push your code to Heroku.

Alternative Text

Anuj Goel

Anuj Goel is a Founder & CEO at Infoxen, attuned in making the high-yielding business decisions and managing the overall corporate operations. Apart from acting as the main point of communication within the team, he finds his muse in writing copies or blogs based on prevailing web-dominating technologies, IT solutions relatable to pain-points of enterprises.

View Author Dairy

From The Author Dairy