You should have ruby and bundler installed in order to generate the static pages.
I'm using ruby-2.0.0p0.
Please refer the official page for installing bundler.
Clone and checkout source
branch.
$ git clone [email protected]:anjuke/anjuke.github.com.git
$ cd anjuke.github.com
$ git checkout -B source origin/source
Now bootstrap and install dependencies.
$ script/bootstrap
Save you new post to source/_posts
directory. You may also attach some small media files to medias
directory.
When you're done type the following in the terminal.
$ rake generate
Before deploy you may preview the site in a web browser locally.
$ rake preview
Open http://localhost:4000 in your browser.
Everything looks OK? Cool, you are able to live the site by the following
$ rake deploy
Open http://arch.corp.anjuke.com to check online.
Remember to push your source
branch to origin repo otherwise other people may overwrite you works.
If you don't have push permission of this repo, you are unable to deploy the site directly. But you can still use pull-request to contribute.