Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
65c35466
Commit
65c35466
authored
Jan 17, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename gitlab:app:setup task to gitlab:setup
parent
b7457f39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
19 deletions
+17
-19
doc/install/installation.md
doc/install/installation.md
+1
-1
lib/tasks/gitlab/setup.rake
lib/tasks/gitlab/setup.rake
+16
-18
No files found.
doc/install/installation.md
View file @
65c35466
...
@@ -260,7 +260,7 @@ used for the `email.from` setting in `config/gitlab.yml`)
...
@@ -260,7 +260,7 @@ used for the `email.from` setting in `config/gitlab.yml`)
## Initialise Database and Activate Advanced Features
## 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
## Install Init Script
...
...
lib/tasks/gitlab/setup.rake
View file @
65c35466
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:app
do
desc
"GITLAB | Setup production application"
desc
"GITLAB | Setup production application"
task
:setup
=>
:environment
do
task
:setup
=>
:environment
do
setup
setup
end
end
def
setup
def
setup
warn_user_is_not_gitlab
warn_user_is_not_gitlab
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
""
Rake
::
Task
[
"db:setup"
].
invoke
Rake
::
Task
[
"db:setup"
].
invoke
Rake
::
Task
[
"db:seed_fu"
].
invoke
Rake
::
Task
[
"db:seed_fu"
].
invoke
Rake
::
Task
[
"gitlab:enable_automerge"
].
invoke
Rake
::
Task
[
"gitlab:enable_automerge"
].
invoke
rescue
Gitlab
::
TaskAbortedByUserError
rescue
Gitlab
::
TaskAbortedByUserError
puts
"Quitting..."
.
red
puts
"Quitting..."
.
red
exit
1
exit
1
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment