Skip to content

Commit

Permalink
Listen to everything in development.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaak committed May 31, 2014
1 parent 3aff758 commit d1d30cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/junethack/sinatra_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
set :cache_enabled, false # complet
#set :cache_output_dir, "#{Dir.pwd}/cache"

# Listen to everything in development.
set :bind, "0.0.0.0"

#enable :sessions
use Rack::Session::Pool #fix 4kb session dropping
use Rack::Deflater
# Scheduler: fetch game data every15 minutes
# Scheduler: fetch game data every 5 minutes
scheduler = Rufus::Scheduler.start_new(:frequency => 1.0)
#scheduler.cron('*/5 * * * *', :blocking => true) { fetch_all }

Expand Down

0 comments on commit d1d30cc

Please sign in to comment.