ababup1192
3/25/2015 - 11:09 AM

Sinatra hello world with bundler and shotgun

Sinatra hello world with bundler and shotgun

require "./app"
run Portfolio::App
require "sinatra/base"

module Portfolio
  class App < Sinatra::Base
    get '/' do
      'hello'
    end
  end
end

Usage

bundle install

  bundle install --path vendor/bundle --without production

launch application

  bundle exec shotgun -o 0.0.0.0
# A sample Gemfile
source "https://rubygems.org"

gem "sinatra"
gem "shotgun"