This post was written, previewed, and published from http://c9.io/
I travel a lot, dual-boot, and own several computers. It can be painful to maintain and sync identical development environments on each machine. I have some projects that are okay to limit to one machine - but I should be able to blog from anywhere. This is actually a common reason I hear people choose WordPress over Octopress.
Cloud9 (http://c9.io/) is an online IDE. It’s matured quite a bit from when I first tried it. It will integrate seamlessly with your GitHub account, and has a terminal so you can run ruby, python and other applications. So, I decided I to try it as an IDE for my blog.
Getting started was painless. I just:
- Signed in to http://c9.io/ with my GitHub account.
- Used the “Clone to Edit” button on the GitHub project for my blog.
- Hit “Start Editing” once it was done.
I could now edit posts on http://c9.io/ with Markdown syntax highlighting and interact directly with GitHub. I wanted a bit more, though. I wanted to preview my blog.
I made one very minor change to the Rakefile. I had to change:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
I’ve sent a pull request. Hopefully this will work out-of-the-box with Octopress in the future.
Now, its easy to get your preview running. Just run:
Soon, your preview should be running at http://<projectname>.<username>.c9.io/. It’s public, so you could even run a few tools against it, like the W3C link checker.
Once you’re ready to post, just follow the normal instructions for deploying Octopress. In my case it was: