yoonic / nicistore

Isomorphic React E-Commerce Storefront
MIT License
662 stars 202 forks source link

GET http://0.0.0.0:3001/dist/bundle.js net::ERR_CONNECTION_REFUSED #28

Open jaivintricore opened 6 years ago

jaivintricore commented 6 years ago

Hello @andreftavares

I have installed your app on my server and to access app through web I have set virtualhost using proxy and reverse proxy and point it to my domain name.

Something like ServerName example.com ProxyPreserveHost On ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ Now I can see your app at example.com but with no css. When I check console it is showing missing bundle.js because it has host and port like 0.0.0.0:3001. If I run site in my localhost it is working good but on server it has issue due to those host and port.

https://www.awesomescreenshot.com/image/3112309/93e7209546c237ed58442d4f9a3d65df GET http://0.0.0.0:3001/dist/bundle.js net::ERR_CONNECTION_REFUSED

So is there any work around to fix this issue? I am seeing those host and port defined in dev.config.js and I am not sure how to fix it