lib/shuttle/deployment/rails.rb in shuttle-deploy-0.2.0.beta14 vs lib/shuttle/deployment/rails.rb in shuttle-deploy-0.2.0.beta15
- old
+ new
@@ -10,11 +10,15 @@
environment
end
end
def precompile_assets?
- config.rails && config.rails.precompile_assets != false
+ if ENV["ASSETS"]
+ true
+ else
+ config.rails && config.rails.precompile_assets != false
+ end
end
def cache_assets?
config.rails && config.rails.cache_assets == true
end
@@ -39,10 +43,10 @@
end
end
end
def rake(command)
- res = ssh.run("cd #{release_path} && rake #{command}")
+ res = ssh.run("cd #{release_path} && bundle exec rake #{command}")
if res.failure?
error "Unable to run rake command: #{command}. Reason: #{res.output}"
end
end
\ No newline at end of file