Skip to content

Instantly share code, notes, and snippets.

@brandonweiss
Created November 17, 2011 07:15
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 brandonweiss/1372581 to your computer and use it in GitHub Desktop.
Save brandonweiss/1372581 to your computer and use it in GitHub Desktop.
ENV['RACK_ENV'] ||= 'development'
require 'rubygems'
require 'bundler'
Bundler.require(:default, ENV['RACK_ENV'].to_sym)
task :environment do
require './environment'
require './arrival'
end
namespace :db do
desc 'Load the seed data from db/seeds.rb'
task :seed => :environment do
seed_file = File.join(File.dirname(__FILE__), 'db', 'seeds.rb')
load(seed_file) if File.exist?(seed_file)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment