examples/api/basic.ru in flipper-0.26.2 vs examples/api/basic.ru in flipper-0.27.0
- old
+ new
@@ -1,19 +1,18 @@
#
# Usage:
-# # if you want it to not reload and be really fast
# bin/rackup examples/api/basic.ru -p 9999
#
-# # if you want reloading
-# bin/shotgun examples/api/basic.ru -p 9999
-#
# http://localhost:9999/
#
require 'bundler/setup'
+require 'rack/reloader'
require "flipper/api"
require "flipper/adapters/pstore"
# You can uncomment this to get some default data:
# Flipper.enable :logging
+
+use Rack::Reloader
run Flipper::Api.app