node-php-server
node-php-server copied to clipboard
Development To Production Issue
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?
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