Created
November 17, 2011 07:15
-
-
Save brandonweiss/1372581 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['RACK_ENV'] ||= 'development' | |
require 'rubygems' | |
require 'bundler' | |
Bundler.require(:default, ENV['RACK_ENV'].to_sym) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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