allow force=yes rake gitlab:setup for capistrano deploy:cold

This commit is contained in:
Mike Wyatt 2013-02-20 00:14:03 -03:30
parent bed500090e
commit c6f5b96ba8

View file

@ -7,10 +7,12 @@ namespace :gitlab do
def setup_db def setup_db
warn_user_is_not_gitlab warn_user_is_not_gitlab
unless ENV['force'] == 'yes'
puts "This will create the necessary database tables and seed the database." puts "This will create the necessary database tables and seed the database."
puts "You will lose any previous data stored in the database." puts "You will lose any previous data stored in the database."
ask_to_continue ask_to_continue
puts "" puts ""
end
Rake::Task["db:setup"].invoke Rake::Task["db:setup"].invoke
Rake::Task["db:seed_fu"].invoke Rake::Task["db:seed_fu"].invoke