Fork me on GitHub

Yet another rubyist blog

Tip: pygments.rb on heroku

If you want to use pygments.rb on Heroku there is workaround for this:

# does anyone know better method to check that we're on heroku?
if ENV['HOME'] == '/app'
  require 'rubypython'
  RubyPython.start(:python_exe => "python2.6")
end
blog comments powered byDisqus