Octopress/Octopress with Github Project Pages: Difference between revisions
From charlesreid1
(moved Octopress/Octopress with Github Project Pages to Octopress/Octopress with Github Project Pages/Old Crap) |
No edit summary |
||
| Line 1: | Line 1: | ||
Treat this the same way you treat [[Jekyll]]: | |||
1. Manually copy all the Octopress repository files into their own directory <code>project/octopress/</code> | |||
2. Manually check out a copy of the <code>gh-pages</code> branch to <code>_deploy</code> inside the new Octopress directory (<code>_deploy</code> is the Octopress version of Jekyll's <code>_site</code>) | |||
3. Make your posts, change your site, do whatever | |||
4. <code>bundle exec rake generate && bundle exec rake deploy</code> to generate static HTML files for site in _deploy | |||
5. When happy with static HTML site, <code>cd project/octopress/_deploy && git add . && git commit -am "Updating gh-pages branch" && git push origin gh-pages</code> | |||
6. When happy with site changes, posts, etc., <code>cd project/octopress && git add . && git commit -am "Updating octopress site source" && git push origin master</code> | |||
Revision as of 06:42, 12 April 2014
Treat this the same way you treat Jekyll:
1. Manually copy all the Octopress repository files into their own directory project/octopress/
2. Manually check out a copy of the gh-pages branch to _deploy inside the new Octopress directory (_deploy is the Octopress version of Jekyll's _site)
3. Make your posts, change your site, do whatever
4. bundle exec rake generate && bundle exec rake deploy to generate static HTML files for site in _deploy
5. When happy with static HTML site, cd project/octopress/_deploy && git add . && git commit -am "Updating gh-pages branch" && git push origin gh-pages
6. When happy with site changes, posts, etc., cd project/octopress && git add . && git commit -am "Updating octopress site source" && git push origin master