johnpapa / lite-server

Lightweight node server
MIT License
2.31k stars 267 forks source link

how to set custom port to command line #145

Open crane168 opened 6 years ago

crane168 commented 6 years ago

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