]> git.openstreetmap.org Git - chef.git/blobdiff - roles/web-frontend.rb
Make sure the tests know they are running in a container
[chef.git] / roles / web-frontend.rb
index 5010e555dfaca959e8f53074231ada3efc929659..0435872dd1c751b166465f04f34d76e702c9aa29 100644 (file)
@@ -21,6 +21,9 @@ default_attributes(
       ]
     }
   },
+  :networking => {
+    :tcp_fastopen_key => "www"
+  },
   :passenger => {
     :max_pool_size => 50
   },
@@ -34,7 +37,10 @@ default_attributes(
         :user => "rails",
         :group => "rails",
         :home_directory => "/srv/www.openstreetmap.org/rails",
-        :path => "/bin:/usr/bin:/usr/local/bin"
+        :path => "/bin:/usr/bin:/usr/local/bin",
+        :environment => {
+          "RAILS_ENV" => "production"
+        }
       }
     }
   }