This command would work as expected:
after I run
ng build --prod
then run the following command in the dist/ folder
pm2 start /usr/bin/http-server -- -p 8080 -d false
Update
I have found a better solution:
which ng
then it will print /usr/bin/ng
then type this
pm2 start /usr/bin/ng -- serve --prod