-
-
Notifications
You must be signed in to change notification settings - Fork 27k
404 not found static files after npm run build #1171
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This seems to be more of a configuration issue with your application rather than CRA itself. If you would like to develop, you should be using the Cheers! |
You might also find deployment instructions helpful: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#deployment But yes, if you just mean to start developing you need |
Also when you run |
I've tried running the build via XAMPP locally, I copied the build folder into the htdocs and then started the server then went into Do I need a node/express server to be able to run the app? and yes I've run |
@JSantana90 copy the contents of the build directory into htdocs instead of the directory itself; you need to do this until #1094 is resolved. e.g. instead of |
@Timer that worked, thank you! |
No problem, @JSantana90. Let us know if you're having any other issues. 😄 |
Is there a way to override the need to specify the URL for the package to have CRA serve on a sub-route? Everything's being developed on a semi-random localhost port, which I would prefer not to encode into the package.json... |
@pretentiousgit we actually ignore the specific url and only use the sub-route; so the arbitrary port is fine for |
Hello, Now I tried to pass the contenent of the build folder to a webserver (192.168.0.91) which resides on a PLC (SAIA PLC) in my local network If I point to http://192.168.0.91/index.html |
I've run the following commands:
create-react-app myApp
cd myApp
npm run build
copy build folder into server
What to do?
The text was updated successfully, but these errors were encountered: