Browse Source

Add Rails-style console script

tags/last-sinatra-version
Adrian Short 6 years ago
parent
commit
ed9e588600
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      scripts/console

+ 11
- 0
scripts/console View File

@@ -0,0 +1,11 @@
#!/usr/bin/env ruby

# https://mutelight.org/bin-console

require 'irb'
require 'irb/completion' # autocomplete
require 'bundler/setup'
Bundler.require
require_relative '../models'
set :run, false # Don't run Sinatra just because we've required it
IRB.start

Loading…
Cancel
Save