Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scripts under bin directory of your Rails app

bundle

#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')

rails

#!/usr/bin/env ruby
APP_PATH = File.expand_path('../../config/application',  __FILE__)
require_relative '../config/boot'
require 'rails/commands'

rake

#!/usr/bin/env ruby
require_relative '../config/boot'
require 'rake'
Rake.application.run

The End

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.