Skip to content

Instantly share code, notes, and snippets.

@jhjguxin
Forked from vast/Rakefile
Created December 16, 2013 11:09
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 jhjguxin/7985470 to your computer and use it in GitHub Desktop.
Save jhjguxin/7985470 to your computer and use it in GitHub Desktop.
require 'my-sinatra-app'
require 'sinatra/activerecord/rake'
desc "run irb console"
task :console, :environment do |t, args|
ENV['RACK_ENV'] = args[:environment] || 'development'
exec "irb -r irb/completion -r my-sinatra-app"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment