If you are reading this, my move to Octopress should be complete.
- A simple theme/template with easy to follow conventions
- A nice community contributing patches/plugins/etc.
Most people appear to run Octopress on GitHub pages. This is a great choice, but for this site, I decided to stay on Heroku.
- Everything else I host is now on Heroku.
- I have some old urls I want to handle with redirects, so I need the ability to execute some code.
Octopress just about works out of the box on Heroku. The only change your absolutely need to make is to remove the public folder from your .gitignore file.
However, there was one other change I made in my own Octopress fork.
Octopress comes with a simple rack server you can use to preview the site locally. For most users this should work quite well. Unfortunately, the included server has two minor draw backs for production usage:
- It always sets the content type to text/html for each file request.
- It does not honor/set other http conventions such as last_modified_headers.
I figured why not try the same thing, so I forked Ocotopress, swapped out the code, and added a dependency to Sinatra. There is of course the extra dependency on Sinatra, but for that you get just about everything done right almost no code.
I am going to submit a pull request shortly. Hopefully they accept it. If not, feel free to just start your new Octopress site with my fork.