Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Scripts Left Out of Github Pages Deployment #2418

Closed
epaudio opened this issue May 31, 2017 · 3 comments
Closed

React Scripts Left Out of Github Pages Deployment #2418

epaudio opened this issue May 31, 2017 · 3 comments

Comments

@epaudio
Copy link

epaudio commented May 31, 2017

Hi, I am trying to deploy my react app to github pages, and I'm running into an issue where the url I provide loads the main index.html, but none of my react scripts. When I open view source on my github pages site I see the main index.html.

I followed the directions given in: create-react-app/packages/react-scripts/template/README.md, and everything worked up to this point. I also notice in my build folder that none of my react scripts are included, so perhaps this is the issue. Please advise.

Here is my git repo
Here is the github pages site

Thanks!

@themre
Copy link
Contributor

themre commented May 31, 2017

@sergeysolovev
Copy link

sergeysolovev commented May 31, 2017

Hi @themre ,
I was facing the same issue a few days ago and decided to stop messing up with github pages since it's not that friendly with single page apps. I succeeded to use surge.sh without extra dancing around, here is my react.js repo: https://github.com/sergeysolovev/swader. Check out package.json, predeploy and deploy sections. That's all you're going to need. Optionally, you can add CNAME and .surgeignore to you public folder.

@Timer
Copy link
Contributor

Timer commented Jun 19, 2017

Closing this as answered by #2418 (comment).

@Timer Timer closed this as completed Jun 19, 2017
@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants