Deploy node app with http-server and forever

前端 未结 5 1202
生来不讨喜
生来不讨喜 2021-02-06 12:01

I want to use http-server and forever.js to deploy my app to remote ubuntu server. But forever.js requires path to JS file, not to executable. So I can\'t pass keys to http-serv

5条回答
  •  失恋的感觉
    2021-02-06 12:40

    You can set the options using that code. Just use the available flags after the end of your command. For example:

    forever start ./node_modules/http-server/bin/http-server -p 80 -d false
    

提交回复
热议问题