Skip to content

Instantly share code, notes, and snippets.

@noach-cellogicmobile
noach-cellogicmobile / heroku.rake
Created July 15, 2012 09:34 — forked from mscottford/heroku.rake
Rake task for restarting a Heroku Web Application
## Restart a Heroku Web Application
## Adapted from a script by mscottford for restarting workers: https://gist.github.com/2028552
## Instructions:
## * Save this script in lib/tasks
## * Gemfile: gem 'heroku-api', :git => 'https://github.com/heroku/heroku.rb.git'
## * Commit Gemfile* and lib/tasks
## * $ heroku config:add APP_NAME='name of the Heroku app'
## * $ heroku config:add HEROKU_API_KEY='the API key found on the Heroku "My Account" page'
## * Deploy and test with $ heroku run rake heroku:webs:restart[10] (Look at process uptime with $ heroku ps)
@noach-cellogicmobile
noach-cellogicmobile / SOLUTION
Created January 22, 2012 07:58
Crash Report for Nokogiri 1.5.0
I just noticed that nokogiri is linked to the system libxml 2.7.3, not fink's 2.7.8.
Not sure what environment variable to set to fix this.
Note that nokogiri-1.5.0/ext/nokogiri/extconf.rb's HEADER_DIRS and LIB_DIRS list MacPorts' /opt/local, but not fink's /sw, and that in any case I use a non-standard fink location, /fink.
Solved using:
$ gem install nokogiri -- --with-xml2-lib=/fink/lib \
--with-xml2-include=/fink/include/libxml2 \
--with-xslt-lib=/fink/lib \
--with-xslt-include=/fink/include