This is the source code for jessebuchanan.ca. It is powered by Octopress 2 and deployed on Amazon S3 / CloudFront using the s3_website gem.
git clone --recursive [email protected]:jbinto/blog.git
cd blog
bundle
Set the AWS credentials. NOTE: Use a restricted IAM role for this!
cp set_aws_credentials.sh.example set_aws_credentials.sh
vi set_aws_credentials.sh
source set_aws_credentials.sh
See http://octopress.org/docs/updating/
git remote add upstream [email protected]:imathis/octopress.git
git fetch upsream
git merge upstream/master
rake update_source
rake update_style
Resolve all the merge conflicts and commit.
bundle exec rake new_post["Lorem ipsum"]
subl source/posts
bundle exec rake generate
powder link
bundle exec rake watch # starts Compass to monitor for changes
open http://blog.dev
Without pow:
bundle exec rake preview
open http://localhost:5000
Deployment is handled via s3_website
.
source set_aws_credentials.sh
s3_website push
I have added my own source/index.html
, which is a bit of a hack to make the root of the site separate from the Octopress blog.
Note that rake update_source
will overwrite source/index.html
.
I keep a backup in index.html.jb
. After rebuilding the source (e.g. new theme, Octopress upgrade), run:
cp source/index.html.jb source/index.html
The theme .themes/boldandblue
is brought in as a git submodule, so I can track it. This brings all of the problems of submodules with it, so be warned.
Note: s3_website
requires a JDK as of July 2014, as it is now partially written in Scala.
If you're on OS X and have Homebrew and Cask installed, this is as easy as:
brew cask install java