reallyawesomedevelopers / reallyawesomedevelopers

https://reallyawesomedevelopers.github.io/reallyawesomedevelopers/
MIT License
2 stars 1 forks source link

Have gh-pages use the gh-pages branch #2

Closed jshemas closed 10 years ago

jshemas commented 10 years ago

The master branch is for making code changes and running tests and stuff. The gh-pages branch should just have the 'app' in a 'production mode'. (Meaning its using minify files)

Right now I think reallyawesomedevelopers.github.io is trying to use master when it should be using the gh-page branch. Is it possible to switch this?

cc: @spicydonuts

megamaddu commented 10 years ago

There are two types of Github Pages projects. One is the account/org page, where the entire repo exists to define a gh pages site (i.e. reallyawesomedevelopers.github.io). Since the project name matches, it's used as the org's gh pages project, on branch master. The other type is a regular project (like the opendocs.io project). If you want to put a regular project on gh pages, you can add a gh-pages branch for it to find. In that case the branch is usually completely different from the rest of the repo, and serves more as documentation than a full site.

megamaddu commented 10 years ago

As for minify files, I think it's fine to always have them. Just make sure you always do a prod or dist mode build before checking in. If the site gets big and complicated and it becomes too much work to merge these generated files or something we can find a way to reorganize.

jshemas commented 10 years ago

Blah. So right now I have grunt making a dist folder with "prod" in it and it pushes that out to the gh-pages branch.

Should the dist folder be commit to master? How does github know where to look for the right index.html? ((Do we have to put that in root? =/))

megamaddu commented 10 years ago

All good questions, and we can certainly switch it. I just got that info from their docs, so we can set it up however you want.

jshemas commented 10 years ago

I kinda like the set up I have going on now... But I don't know if its appropriate... I'm fine with whatever, since this is still a long way off from being production ready.

jshemas commented 10 years ago

It look like if you change to repo's name(remove github.io) the repo will behave normally and use the gh-pages branch for Github Pages.

megamaddu commented 10 years ago

try now

jshemas commented 10 years ago

This URL should work http://reallyawesomedevelopers.github.io/reallyawesomedevelopers/

But its still returning a 404.

jshemas commented 10 years ago

Nevermind, seems to be working now!

Can you update the repo's sub title with the new URL?

megamaddu commented 10 years ago

done