Sha256: 2fe6eb4a4fd8a3b6f38c2b33280f10b6c482aea61b2944b1b1e13ba4081dfd66
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
require 'pyro' require 'sinatra/base' require 'erb' class PyroServer < Sinatra::Base include Pyro set :fast_build, false set :port, 7976 set :public_folder, './tmp' set :staging, false set :target, 'development' get '/?' do unless settings.staging Pyro.burn(settings.target, settings.fast_build) settings.fast_build = settings.fast end File.read "#{settings.public_folder}/index.html" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pyro-1.0.0.rc1 | lib/pyro/server.rb |