Last active
December 19, 2015 12:49
-
-
Save ashleygwilliams/5957597 to your computer and use it in GitHub Desktop.
instructions for using sinatra reloader for windows machines that can't use shotgun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from http://www.sinatrarb.com/contrib/reloader.html | |
#GEMFILE | |
development do | |
gem "sinatra-contrib" | |
gem "tux" | |
end | |
#app.rb | |
require "sinatra/reloader" if development? | |
module Project | |
class App < Sinatra::Base | |
configure :development do | |
register Sinatra::Reloader | |
end | |
end | |
end | |
# to run the app... | |
$ rackup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment