Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Describe enabling the reloader in non-development environments
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorBramble committed Nov 30, 2013
1 parent 7f1c651 commit 49808be
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/sinatra/reloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49808be

Please sign in to comment.