Deploy Angular 5 + Nodejs Express app to Heroku

前端 未结 8 1406
清酒与你
清酒与你 2021-02-04 02:35

I have an Angular 5 App.

This is what I have in my package.json

{
  "name": "web",
  "version": "0.0.0&         


        
相关标签:
8条回答
  • 2021-02-04 03:21

    In answer how to debug further. Run your app, then straight away login to Heroku, go to your app, then in the 'More' dropdown, click 'View Logs'. Should help you out!

    I believe there is a way to view the live logs through the terminal too so you can see exactly what is failing.

    0 讨论(0)
  • 2021-02-04 03:23

    You will face memory exceed issue if you are gonna build prod on heroku. So free type won’t work.

    So try to build in local and serve your dist files using express.

    Use same command in PROC file

    Heroku local or Heroku local web : verify your changes in local

    0 讨论(0)
提交回复
热议问题