Setup an Existing Octopress Repository After Git Clone
The Problem
It seems all the tutorial on Octopress deals with setting up a new repository.
Recently, I needed to clone the my Octopress repo on a new machine and
resume writing there. I thought it would be as simple as
git clone
, rake setup_github_pages
, rake new_post
, and rake gen_deploy
.
However I encourtered the following during deploy
1 2 3 4 5 6 7 8 9 10 |
|
The Fix
I googled around and found no solution.
After digging into the Rakefile, I came up with a manual fix.
Basically, you need to create and link the deploy
directory to master
branch.
First, we clone the repo and switch to the correct branch:
1 2 3 |
|
Then we need to setup the deploy
directory.
1 2 3 4 |
|
Done! Now we can make changes in source
branch and use rake gen_deploy
as usual.