mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
only reload files in dev
This commit is contained in:
parent
22e0f1d4a8
commit
436f1fd14a
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ module Sinatra
|
|||
end
|
||||
|
||||
def call(env)
|
||||
Loader.reload!
|
||||
Loader.reload! if Options.environment == :production
|
||||
|
||||
@request = Rack::Request.new(env)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue