X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/635cbad67f035d591cf5442e3c230c2ef8c1bf26..0df3c25948a3a0f1bdc843f277bd6358c2162385:/cookbooks/web/definitions/rails_port.rb diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index a0eb7eb79..a51484b1f 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -76,6 +76,7 @@ define :rails_port, :action => [ :create, :enable ] do execute "#{rails_directory}/public/assets" do action :nothing command "rake#{ruby_version} assets:precompile" + environment "RAILS_ENV" => "production" cwd rails_directory user rails_user group rails_group