diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-07 02:08:11 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-07 02:08:11 -0800 |
commit | 9c2a6e201388e7e30987a8679ddfa65b9422a38c (patch) | |
tree | 8084e4528e13cae2cc0557ebb0bb83e133e865a4 /lib | |
parent | a32f85ac76c0744952264378f42e01e83d85f986 (diff) | |
parent | 4243105eb5cba030eb6dcdc9cb4d18c977a4fe6b (diff) | |
download | gitlab-ce-9c2a6e201388e7e30987a8679ddfa65b9422a38c.tar.gz |
Merge pull request #3047 from mikew/capistrano-deploy-example
Capistrano deploy example
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/setup.rake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/tasks/gitlab/setup.rake b/lib/tasks/gitlab/setup.rake index 8d4950cf396..5b74daf956e 100644 --- a/lib/tasks/gitlab/setup.rake +++ b/lib/tasks/gitlab/setup.rake @@ -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 |