Merge pull request #3047 from mikew/capistrano-deploy-example

Capistrano deploy example
This commit is contained in:
Dmitriy Zaporozhets 2013-03-07 02:08:11 -08:00
commit 9c2a6e2013
3 changed files with 82 additions and 4 deletions

View file

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