Skip to content

Instantly share code, notes, and snippets.

@jparbros
Created March 1, 2016 21:46
Show Gist options
  • Select an option

  • Save jparbros/7bdfb4f4553fbe116323 to your computer and use it in GitHub Desktop.

Select an option

Save jparbros/7bdfb4f4553fbe116323 to your computer and use it in GitHub Desktop.
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Rails.application
# Load the Rails application.
require File.expand_path('../application', __FILE__)
# Initialize the Rails application.
Rails.application.initialize!
#!/usr/bin/env ruby
require_relative '../config/boot'
require 'rake'
Rake.application.run
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment