Sha256: aa1fea66fa434eb36ed610dc2687e313248f31d75ace820594a5f30562c9c9f0
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
require 'pyro' require 'sinatra/base' require 'erb' class PyroServer < Sinatra::Base include Pyro set :port, 5678 set :public_folder, './builds/development' set :fast_build, false get '/?' do Pyro.build('development', settings.fast_build, settings.src_folder) settings.fast_build = settings.fast File.read("#{settings.src_folder}/builds/development/index.html") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pyro-0.8.2 | lib/pyro/server.rb |