Angular 7.1.4 on Heroku

Asked

Viewed 66 times

-2

Well, I’m trying to climb an angular application ( basically the get Started that you have in the documentation ) to Heroku, by the angle rotate over the Node, I know I need to set the port as process.env.PORT || 3000 but nowhere is that door set, locally I managed to change the port by passing it on the command line to the ng but this does not work in mt well in Heroku.

This is the project : https://github.com/MatheusRBarbosa/stopot

1 answer

0


I solved the problem by creating a server.js basic and created a script for Heroku to instantiate that server

Browser other questions tagged

You are not signed in. Login or sign up in order to post.