debug by environment (stop endless editing)

This commit is contained in:
Torsten Ruger 2015-08-22 01:35:21 +02:00
parent 15fd4ea7c6
commit 5f2f35cbcf
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ run DebugServer.new { |s|
s.append_path 'lib'
s.append_path 'assets'
# s.source_map = true
s.debug = false
s.debug = !ENV["DEBUG"].nil?
s.index_path = "index.html.erb"
s.sprockets.cache = Sprockets::Cache::MemoryStore.new(5000)