lib/cany/recipes/rails.rb in cany-0.0.1 vs lib/cany/recipes/rails.rb in cany-0.0.2
- old
+ new
@@ -7,10 +7,12 @@
rmtree 'tmp', 'public/assets'
inner.clean
end
def build
- ruby_bin 'rake', 'assets:precompile'
+ ENV['RAILS_ENV'] = 'assets'
+ ruby_bin 'bundle', 'exec', 'rake', 'assets:precompile'
+ ENV['RAILS_ENV'] = 'production'
inner.build
end
def binary
%w(app config.ru db Gemfile Gemfile.lock lib public Rakefile vendor).each do |item|