How Can I run PM2 with Angular-Cli? - Angular2

前端 未结 7 771
夕颜
夕颜 2020-12-30 07:33

How can I run: ng serve --prod with pm2?

ng serve from angular-cli, Angular2. I\'m running on DigitalOcean.

I have tried to test with ht

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 07:45

    If you just want to serve static files, a new command has landed in pm2:

    $ pm2 expose [path] [port]

提交回复
热议问题