lite-server icon indicating copy to clipboard operation
lite-server copied to clipboard

how to set custom port to command line

Open crane168 opened this issue 7 years ago • 0 comments

I use pm2 start lite-server -- -baseDir="dist" -- port 8000 ,but it doesn't work and the service is still enabled from the default port 3000,But I use pm2 start lite-server -- -baseDir="dist" -c dist/bs-config.json, which can be used。please help me,thank you !

Environment

  • lite-server version: 2.4
  • nodejs version: 8.11.3
  • npm version:5.6.0
  • OS type/version:

crane168 avatar Nov 05 '18 09:11 crane168