Skip to content

Instantly share code, notes, and snippets.

@elhu
Last active January 4, 2016 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elhu/8540712 to your computer and use it in GitHub Desktop.
Save elhu/8540712 to your computer and use it in GitHub Desktop.
ruby-band basic
require 'sinatra'
require 'ruby-band'
class App < Sinatra::Base
get '/' do
[200, 'Hello, World!']
end
end
require_relative 'app'
run App
Warbler::Config.new do |config|
config.features = %w(gemjar compiled)
config.dirs = %w(config tmp vendor)
config.includes = FileList["config.ru", "app.rb"]
end
source 'https://rubygems.org'
gem 'sinatra'
gem 'ruby-band'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment