L
L
Legyss2016-12-20 19:27:15
Heroku
Legyss, 2016-12-20 19:27:15

How to deploy a static application on Heroku angular 2?

I'm trying to host an application that runs on localhost without problems. Heroku gives errors.

2016-12-20T16:23:08.153626+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=weeping-forest.herokuapp.com request_id=ea7c49b5 -c5e7-40bb-9ff3-cbb0a813b40e fwd="91.203.63.14" dyno= connect= service= status=503 bytes=
2016-12-20T16:23:08.422693+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=weeping-forest.herokuapp.com request_id=9cf881cb-7f88-43b1-9e5f-bb935675f62c fwd="91.203.63.14" dyno= connect= service= status=503 bytes=

Googling, I found many options where they offer to fix the node config, because. Ports change dynamically on Hiroku, but there is always one on the localhost. But I only upload dependencies in package.json to the hosting, node_modules is not involved in this. It is understood that, based on the dependencies on their hosting, the packages themselves are installed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Legyss, 2016-12-20
@Legyss

there was a lite server, I replaced it with a simple script found in Google - it worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question