Skip to content
Snippets Groups Projects
Commit 65c35466 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Rename gitlab:app:setup task to gitlab:setup

parent b7457f39
No related branches found
No related tags found
1 merge request!2650Improve setup task, by making it less dangerous
Loading
Loading
@@ -260,7 +260,7 @@ used for the `email.from` setting in `config/gitlab.yml`)
 
## Initialise Database and Activate Advanced Features
 
sudo -u gitlab -H bundle exec rake gitlab:app:setup RAILS_ENV=production
sudo -u gitlab -H bundle exec rake gitlab:setup RAILS_ENV=production
 
 
## Install Init Script
Loading
Loading
namespace :gitlab do
namespace :app do
desc "GITLAB | Setup production application"
task :setup => :environment do
setup
end
desc "GITLAB | Setup production application"
task :setup => :environment do
setup
end
 
def setup
warn_user_is_not_gitlab
def setup
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 ""
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 ""
 
Rake::Task["db:setup"].invoke
Rake::Task["db:seed_fu"].invoke
Rake::Task["gitlab:enable_automerge"].invoke
rescue Gitlab::TaskAbortedByUserError
puts "Quitting...".red
exit 1
end
Rake::Task["db:setup"].invoke
Rake::Task["db:seed_fu"].invoke
Rake::Task["gitlab:enable_automerge"].invoke
rescue Gitlab::TaskAbortedByUserError
puts "Quitting...".red
exit 1
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment