allow force=yes rake gitlab:setup for capistrano deploy:cold
This commit is contained in:
parent
bed500090e
commit
c6f5b96ba8
1 changed files with 6 additions and 4 deletions
|
@ -7,10 +7,12 @@ namespace :gitlab do
|
||||||
def setup_db
|
def setup_db
|
||||||
warn_user_is_not_gitlab
|
warn_user_is_not_gitlab
|
||||||
|
|
||||||
puts "This will create the necessary database tables and seed the database."
|
unless ENV['force'] == 'yes'
|
||||||
puts "You will lose any previous data stored in the database."
|
puts "This will create the necessary database tables and seed the database."
|
||||||
ask_to_continue
|
puts "You will lose any previous data stored in the database."
|
||||||
puts ""
|
ask_to_continue
|
||||||
|
puts ""
|
||||||
|
end
|
||||||
|
|
||||||
Rake::Task["db:setup"].invoke
|
Rake::Task["db:setup"].invoke
|
||||||
Rake::Task["db:seed_fu"].invoke
|
Rake::Task["db:seed_fu"].invoke
|
||||||
|
|
Loading…
Add table
Reference in a new issue