Skip to content

Instantly share code, notes, and snippets.

@mikedijkstra
mikedijkstra / gist:1028391
Created June 15, 2011 23:30
Rails: Compass and Heorku
The default installation of compass in a rails app that is deployed to Heroku can cause some issues due to the nature of Heroku's read only file system.
A quick fix to this problem (assuming you develop locally and just deploy to production) you can add the following lines of code to config/compass.rb
environment = Compass::AppIntegration::Rails.env
if environment == :production
Sass::Plugin.options[:never_update] = true
end
@mikedijkstra
mikedijkstra / mongodump_mongorestore
Last active September 26, 2015 02:58
Copying local mongoDB to mongoHQ
mongodump -h [HOST]:[PORT] -u [USERNAME] -d [DB NAME] --password [PASSWORD]
mongorestore -h [HOST]:[PORT] -u [USERNAME] -d [DB NAME] --password [PASSWORD] [SOURCE]