Skip to content

Instantly share code, notes, and snippets.

@ramzesucr
Created July 18, 2017 10:02
Show Gist options
  • Save ramzesucr/0a69aca310249bca74eea0a760fc015a to your computer and use it in GitHub Desktop.
Save ramzesucr/0a69aca310249bca74eea0a760fc015a to your computer and use it in GitHub Desktop.
Console for ruby project, should be inside bin folder
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)
require 'rubygems'
require 'bundler/setup'
require_relative '../config/boot'
require 'pry'
Pry.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment