scottcorgan / pushstate-server

Static file server that works with HTML5 Pushstate.
421 stars 35 forks source link

problem with foreverjs #57

Closed gengjiawen closed 7 years ago

gengjiawen commented 7 years ago

hi, I use pushstate-server to server my spa created by create-react-app. On my server I am using forever to make the spa keep running

forever start -c "pushstate-server ./ 4000" ./

But I run into a problem, I can't direct access sub route (using react-router 3), when I directly access url such as http://192.168.1.90:4000/passengers, I will get this error

Cannot GET /passengers

Without foreverjs or visit through http://192.168.1.90:4000 is fine.

gengjiawen commented 7 years ago

I decide switch to pm2.