How do I deploy an Angular.js app?

后端 未结 3 1939
青春惊慌失措
青春惊慌失措 2021-02-05 12:38

This may be a stupid question, but I\'m wondering what platform I should use to deploy my Angular.js app? I tried using Heroku but got a \"no Cedar-supported app detected\" erro

3条回答
  •  一整个雨季
    2021-02-05 12:53

    I changed this line var DEFAULT_PORT = 8000; into: var DEFAULT_PORT = process.env.PORT || 8000;

    ..and then it worked. So I believe the reason is that heroku doesn't like your app running on port 8000.

提交回复
热议问题