Skip to content

Commit

Permalink
use dev branch for deploying. only create mock students in dev env.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrevich committed May 7, 2013
1 parent 12c1234 commit 24174d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

set :application, "reuman" #matches names used in smf_template.erb
set :repository, "https://github.com/reumanager/reumanager.git"
set :branch, :rails_admin_customizations
set :branch, :dev
set :domain, 'indra.ucsd.edu'
set :deploy_to, "/var/www/#{application}" # I like this location
set :deploy_via, :remote_cache
Expand Down
5 changes: 3 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
u = User.new(email: '[email protected]', first_name: 'Melissa', last_name: 'Micou', password: 'DemoApp'); u.confirmed_at = DateTime.now; u.save

# Demo Applicants
100.times { FactoryGirl.create(:applicant) }; 100.times { FactoryGirl.create(:applicant_with_address) }; 100.times { FactoryGirl.create(:applicant_with_address_and_record) }; 100.times { FactoryGirl.create(:applicant_with_address_record_and_recommender) }; 100.times { FactoryGirl.create(:applicant_with_recommender_and_recommendation) }; 100.times { FactoryGirl.create(:applicant_with_address_record_recommender_and_recommendation) }

if ENV['RAILS_ENV'] == 'development' do
100.times { FactoryGirl.create(:applicant) }; 100.times { FactoryGirl.create(:applicant_with_address) }; 100.times { FactoryGirl.create(:applicant_with_address_and_record) }; 100.times { FactoryGirl.create(:applicant_with_address_record_and_recommender) }; 100.times { FactoryGirl.create(:applicant_with_recommender_and_recommendation) }; 100.times { FactoryGirl.create(:applicant_with_address_record_recommender_and_recommendation) }
end

0 comments on commit 24174d3

Please sign in to comment.