Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sinatra-reloader に対応

  • Loading branch information...
commit 5024fb4b4ecf11a22d3e5adad1834c6a65327b3a 1 parent 5e13ec9
@ongaeshi authored
Showing with 8 additions and 3 deletions.
  1. +4 −3 Gemfile
  2. +4 −0 lib/milkode/cdweb/app.rb
View
7 Gemfile
@@ -19,7 +19,8 @@ gem 'thor', '~> 0.15.0'
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
- gem "bundler"
- gem "jeweler"
- gem "rack-test"
+ gem 'bundler'
+ gem 'jeweler'
+ gem 'rack-test'
+ gem 'sinatra-reloader'
end
View
4 lib/milkode/cdweb/app.rb
@@ -7,6 +7,10 @@
require 'rubygems'
require 'sinatra'
+if development?
+ require "sinatra/reloader"
+ also_reload '../../**/*.rb'
+end
require 'sass'
require 'haml'
Please sign in to comment.
Something went wrong with that request. Please try again.