Skip to content
Browse files

Describe enabling the reloader in non-development environments

  • Loading branch information...
1 parent 7f1c651 commit 49808befdb43d7b66fcf16f3cae05c423e1e8705 @TrevorBramble TrevorBramble committed
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/sinatra/reloader.rb
View
14 lib/sinatra/reloader.rb
@@ -37,6 +37,20 @@ module Sinatra
# # Your modular application code goes here...
# end
#
+ # == Using the Reloader in Other Environments
+ #
+ # By default, the reloader is only enabled for the development
+ # environment. Similar to registering the reloader in a modular
+ # application, a classic application requires manually enabling the
+ # extension for it to be available in a non-development environment.
+ #
+ # require "sinatra"
+ # require "sinatra/reloader"
+ #
+ # configure :production do
+ # enable :reloader
+ # end
+ #
# == Changing the Reloading Policy
#
# You can refine the reloading policy with +also_reload+ and

0 comments on commit 49808be

Please sign in to comment.
Something went wrong with that request. Please try again.