If I have understood it right you are talking about switching the start script from >ng serve to >node server.js and this can be done easily by keeping two branches. One master and one develop, on develop you can keep every setting set to your development environment, and on master, you can keep what is required for Heroku. Then you just have to merge develop into master and push it. At the very first merge the start script will also be changed to the one on develop branch, you can change it again just one time and then make a commit push. I hope I have understood the question right. If no please contact me on Twitter. https://twitter.com/OmeriKlement?s=09