node-php-server icon indicating copy to clipboard operation
node-php-server copied to clipboard

Development To Production Issue

Open ubergeekzone opened this issue 8 years ago • 1 comments

I have an issue when building my app using electron-package with node-php-server. The app runs fine doing a npm start but when i build the app all of my css and js resources return 404 errors.

Any ideas?

ubergeekzone avatar Nov 13 '17 01:11 ubergeekzone

If it's just your CSS & JS I would expect it may be the PHP server believes it's relative pathing is wrong. i.e., /js/myfile.js vs ./js/myfile.js is resolving differently. So I'd echo getcwd() to verify where PHP thinks it is

jleaders avatar May 10 '19 21:05 jleaders