$ rails s
http://localhost:3000
$ rails s -e production
$ RAILS_ENV=production rails s
conf../env../development.rb config.assets.compile = true
conf../env../production.rb config.assets.compile = false
Compiles on the fly
Assumes precompilation
$ git checkout -b test-prod
$ RAILS_ENV=production bundle exec rake assets:precompile
config/environment/production.rb config.serve_static_assets = true
I really don't like you, CSS...
background-image: url(“/assets/pic.jpg”);
background-image: url(<%= asset_path 'pic.jpg' %>);
background-image: image-url("pic.jpg");
background: image-path("pic.jpg");
gem 'turbo-sprocket-rails'
By rbatta
Lightning talk for RockyMtnRuby 2014