Deploying a Rails 3.1 app in production
moocode.com
moocode.com
It strikes me as really strange that they would allow certain functionality which you would get used to in development (images in stylesheets that are automatically matched to assets), then have that completely break when you precompile for production.
This minimizes production dependencies (including the need to compile gems live) as long as your CI environment sufficiently resembles prod.
module ::MyAppName
class Application
include Rake::DSL
end
end
module ::RakeFileUtils
extend Rake::FileUtilsExt
end
There's a fix on the way, too.Also, I believe if you're using SASS/SCSS you can interpolate the asset like so, without having to use erb:
background: #00ff00 url(#{asset_path 'rails.png'}) no-repeat fixed center; background: lime url(asset_path "rails.png") no-repeat fixed center;Rake 0.9.0 is extremely broken. I recommend reverting to 0.8.7.