From ba315c661055f3e191d7a349866264bfab751bb9 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 25 Mar 2013 13:33:13 -0400 Subject: [PATCH] If assets haven't been precompiled, fail to start server in production mode with a message --- config/initializers/verify_config.rb | 30 +++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/config/initializers/verify_config.rb b/config/initializers/verify_config.rb index 926de1f3e5a..d7070c7db2c 100644 --- a/config/initializers/verify_config.rb +++ b/config/initializers/verify_config.rb @@ -1,15 +1,31 @@ # Check that the app is configured correctly. Raise some helpful errors if something is wrong. -if Rails.env.production? && ['localhost', 'production.localhost'].include?(Discourse.current_hostname) - puts <