Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save vanderhoop/f7ca8bb5894b24c3b3e1 to your computer and use it in GitHub Desktop.

Select an option

Save vanderhoop/f7ca8bb5894b24c3b3e1 to your computer and use it in GitHub Desktop.

Config for Shotgun

  1. gem install shotgun
  2. reload your terminal
  3. In your app.rb file, change the classname from Application to App.
  • Note: It will still inherit from Sinatra::Base
  1. Replace the contents of your config.ru file with the following code.
require 'pry'
require 'sinatra'
require './app'

run App
  1. You can now spin up your server with the the command shotgun config.ru. You will be hitting http://localhost:9393
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment