Set NOKOGIRI_USE_SYSTEM_LIBRARIES while instailling the rails bundle
authorTom Hughes <tom@compton.nu>
Fri, 20 Dec 2013 09:06:10 +0000 (09:06 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 20 Dec 2013 09:06:10 +0000 (09:06 +0000)
cookbooks/web/definitions/rails_port.rb

index dbc5c32..1d9179a 100644 (file)
@@ -102,6 +102,7 @@ define :rails_port, :action => [ :create, :enable ] do
     cwd rails_directory
     user "root"
     group "root"
+    environment "NOKOGIRI_USE_SYSTEM_LIBRARIES" => "yes"
     if run_migrations
       notifies :run, "execute[#{rails_directory}/db/migrate]"
     else