Closed bmwertman closed 10 years ago
After pushing do you have a gh-pages branch on your github repo?
Yep, here is a link to the repo if you would like to have a look. https://github.com/bmwertman/bmwertman.github.io
Oh, do the .io pages need the main branch to be the built site?
Rob Wierzbowski @robwierzbowski http://twitter.com/#!/robwierzbowski http://github.com/robwierzbowski http://robwierzbowski.com
On Fri, May 16, 2014 at 2:18 PM, Brad Wertman notifications@github.comwrote:
Yep, here is a link to the repo if you would like to have a look. https://github.com/bmwertman/bmwertman.github.io
— Reply to this email directly or view it on GitHubhttps://github.com/robwierzbowski/grunt-build-control/issues/33#issuecomment-43362912 .
I'm not certain. I'm just learning Angular. I ported my original HTML/CSS site that I had served via Github Pages over to Angular and it was looking good locally.
I then re-named the bmwertman.github.com github repo that had the files for that original site to something else and tried pushing my newly created Angular project into a new repo called bmwertman.github.com. That gave me a 404.
I think you can't serve a Angular project to Github Pages because it puts the index.html in the app.js sub directory instead of the root which Github-Pages seems to want. The dist file that grunt-build control creates seems to structure things in a more optimal configuration with the index.html in the root of that folder. I'm just not sure how to get Github Pages to serve the gh-pages branch with the dist file in it.
Totally. I think these questions might be better posted to the github pages queue or stack overflow. IIRC, pages needs an index.html in root in order to work.
Rob Wierzbowski @robwierzbowski http://twitter.com/#!/robwierzbowski http://github.com/robwierzbowski http://robwierzbowski.com
On Fri, May 16, 2014 at 2:47 PM, Brad Wertman notifications@github.comwrote:
I'm not certain. I'm just learning Angular. I ported my original HTML/CSS site that I had served via Github Pages over to Angular and it was looking good locally.
I then re-named the bmwertman.github.com github repo that had the files for that original site to something else and tried pushing my newly created Angular project into a new repo called bmwertman.github.com. That gave me a 404.
I think you can't serve a Angular project to Github Pages because it puts the index.html in the app.js sub directory instead of the root which Github-Pages seems to want. The dist file that grunt-build control creates seems to structure things in a more optimal configuration with the index.html in the root of that folder. I'm just not sure how to get Github Pages to serve the gh-pages branch with the dist file in it.
— Reply to this email directly or view it on GitHubhttps://github.com/robwierzbowski/grunt-build-control/issues/33#issuecomment-43366139 .
Agree. Thanks for your quick response.
Any time! Please post back if you find a workaround to the no-index problem.
Rob Wierzbowski @robwierzbowski http://twitter.com/#!/robwierzbowski http://github.com/robwierzbowski http://robwierzbowski.com
On Fri, May 16, 2014 at 2:58 PM, Brad Wertman notifications@github.comwrote:
Agree. Thanks for your quick response.
— Reply to this email directly or view it on GitHubhttps://github.com/robwierzbowski/grunt-build-control/issues/33#issuecomment-43367277 .
Just an update. I solved my issue. I was under the impression that Github would be serving the gh-pages branch I had created directly somehow via bmwertman.github.io. The complete URL it was serving was in fact bmwertman.github.io/#/dist. (Facepalm) Crisis averted.
It should be serving it directly from the root. I think you may be hosting gh pages code on the wrong branch.
On Monday, May 19, 2014, Brad Wertman notifications@github.com wrote:
Just an update. I solved my issue. I was under the impression that Github would be serving the gh-pages branch I had created directly somehow via bmwertman.github.io. The complete URL it was serving at was in fact bmwertman.github.io/#/dist. (Facepalm) Crisis averted.
— Reply to this email directly or view it on GitHubhttps://github.com/robwierzbowski/grunt-build-control/issues/33#issuecomment-43493212 .
Rob Wierzbowski @robwierzbowski http://twitter.com/#!/robwierzbowski http://github.com/robwierzbowski http://robwierzbowski.com
The method I'm using now ( The git subtree method found here http://yeoman.io/deployment.html) isn't actually using grunt-build-control. For this project, I'm good with that because it's unlikely I will be changing the page substantially very often. And It's just a portfolio site to point to some of my other work which I'm using my own domain name for so it doesn't result in a strange url.
As far as I can tell I have successfully configured and ran everything for grunt-build-control. However when I hit the url bmwertman.github.io for my github page I'm still getting a 404 "There isn't a page here". Should I be going through the standard github page deployment process found here https://pages.github.com/? Or some adjusted version of it directing to my gh-pages branch?