Deploy your octopress blogs to Cloud Foundry
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This project eases the deployment of Octopress blogs to Cloud Foundry.

See a sample blog here:


  • A Cloud Foundry account. Get one here.
  • Octopress installed. Follow the setup steps from the Octopress website.
  • vmc installed: gem install vmc
  • Some ideas to blog about.


We assume that you cloned the Octopress git repository in a folder called octopress and that you followed steps explained in their setup instructions.

So - before continuing - you should already have a folder called octopress and you should also have edited the _config.yml file to provide some useful configuration for your blog such as a sensible title, authorship information, etc.. You may also wish to choose and install one of the many available Octopress themes.

cd /path/to/octopress
git clone git://

Now we are going to generate the basic files for our Cloud Foundry application. Let's call this one myblog.

rake --rakefile cloudfoundry-octopress/Rakefile new_app["myblog"]

if you see an error whilst running this command, it is possible you are using zsh as your chosen shell. There is a problem with the way in which zsh uses globbing when using rake commands. See Octopress issue #117 for several workarounds, or simply use a different shell such as bash.

At this point we have a basic app to serve our blog. Let's add our first blog post using rake:

rake new_post["Hello Octopress"]

Then write the blog post inside the source/_posts/YYYY-MM-DD-hello-octopress.markdown file.

Once you finished writing your blog post, run the following rake task to generate the static blog files:

rake generate

Before deploying, you should also double-check the _config.yml file to ensure that the url value matches the expected final URL that you are deploying to.

Now we are ready to push our blog to Cloud Foundry

vmc push
Using manifest file manifest.yml
Creating myblog... OK
Updating myblog... OK
Uploading myblog... OK
Starting myblog... OK
Checking myblog... OK

Now the next time you add a new blog post, simply repeat the vmc push command.


Copyright © 2012 Alvaro Videla

See the LICENSE file.