how to work with femhub.org pages

2 views
Skip to first unread message

Ondrej Certik

unread,
Jun 29, 2009, 4:30:42 AM6/29/09
to fem...@googlegroups.com, hpfem
Hi,

the latest femhub.org pages git repository is at:

http://github.com/certik/femhub.org

at it has two branches:

master ... the branch with template sources, just use "./generate" to
create the html pages, see the README for more info (this branch
doesn't contain the generated pages)
gh-pages ... the branch which contains just the generated pages

If you push the gh-pages to github, it will automatically create the pages at:

http://certik.github.com/femhub.org

(only instead of "certik" there will be your github name). This is
very nice for testing pages, if you want to ask other people for
opinions on your changes, without doing this "life" on our femhub.org
pages.

If you are satisfied with the changes and you want to push changes to
femhub.org, just do:

git push git@spilka:repos/femhub.org gh-pages

and it will automatically recognize that you have updated the gh-pages
branch and copies the file from the repository (on spilka) to
/home/git/web/femhub.org and the apache rules for femhub.org now
points to that directory too.

Note: if you for some reason just want to edit the femhub.org pages,
without bothering with git, just edit the files in the dir
"/home/git/web/femhub.org" and that's it (use:

sudo su git
cd web/femhub.org

so that you get the right permissions). I however discourage this
approach, because then someone has to track what changes you did and
put it into the git repository, so that other people can play with the
latest pages.

Ondrej

Ondrej Certik

unread,
Jun 29, 2009, 4:33:46 AM6/29/09
to fem...@googlegroups.com, hpfem
On Mon, Jun 29, 2009 at 2:30 AM, Ondrej Certik<ond...@certik.cz> wrote:
[...]

> git push git@spilka:repos/femhub.org gh-pages
>
> and it will automatically recognize that you have updated the gh-pages
> branch and copies the file from the repository (on spilka) to
> /home/git/web/femhub.org and the apache rules for femhub.org now
> points to that directory too.

Btw, if you are interested how this is done technically on spilka,
here is the howto:

http://code.google.com/p/femhub/wiki/GitHooks

Ondrej

Reply all
Reply to author
Forward
0 new messages