gem install shotgunreloadyour terminal- In your
app.rbfile, change the classname fromApplicationtoApp.
- Note: It will still inherit from
Sinatra::Base
- Replace the contents of your
config.rufile with the following code.
require 'pry'
require 'sinatra'
require './app'
run App
- You can now spin up your server with the the command
shotgun config.ru. You will be hittinghttp://localhost:9393