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
Léo-Paul Géneau
gitlab-ce
Commits
3682e726
Commit
3682e726
authored
May 27, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'move_script_to_bin' into 'master'
Move script to bin Fixes #925
parents
d25bc257
2341cefd
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
21 deletions
+15
-21
README.md
README.md
+1
-1
bin/background_jobs
bin/background_jobs
+0
-0
bin/check
bin/check
+0
-0
bin/upgrade.rb
bin/upgrade.rb
+0
-0
bin/web
bin/web
+0
-0
doc/update/upgrader.md
doc/update/upgrader.md
+3
-3
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+6
-6
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+1
-1
lib/tasks/sidekiq.rake
lib/tasks/sidekiq.rake
+4
-4
script/rails
script/rails
+0
-6
No files found.
README.md
View file @
3682e726
...
...
@@ -108,7 +108,7 @@ Start it with [Foreman](https://github.com/ddollar/foreman)
or start each component separately
bundle exec rails s
script
/background_jobs start
bin
/background_jobs start
And surf to
[
localhost:3000
](
http://localhost:3000/
)
and login with root / 5iveL!fe
...
...
script
/background_jobs
→
bin
/background_jobs
View file @
3682e726
File moved
script
/check
→
bin
/check
View file @
3682e726
File moved
script
/upgrade.rb
→
bin
/upgrade.rb
View file @
3682e726
File moved
script
/web
→
bin
/web
View file @
3682e726
File moved
doc/update/upgrader.md
View file @
3682e726
...
...
@@ -19,10 +19,10 @@ __GitLab Upgrader is available only for GitLab version 6.4.2 or higher__
### 2. Run gitlab upgrade tool
cd /home/git/gitlab
sudo -u git -H ruby
script
/upgrade.rb
sudo -u git -H ruby
bin
/upgrade.rb
# to perform a non-interactive install (no user input required) you can add -y
# sudo -u git -H ruby
script
/upgrade.rb -y
# sudo -u git -H ruby
bin
/upgrade.rb -y
### 3. Start application
...
...
@@ -57,6 +57,6 @@ You've read through the entire guide, and probably did all the steps manually. H
```
bash
cd
/home/git/gitlab
;
sudo
-u
git
-H
bundle
exec
rake gitlab:backup:create
RAILS_ENV
=
production
;
\
sudo
service gitlab stop
;
sudo
-u
git
-H
ruby
script
/upgrade.rb
-y
;
sudo
service gitlab start
;
\
sudo
service gitlab stop
;
sudo
-u
git
-H
ruby
bin
/upgrade.rb
-y
;
sudo
service gitlab start
;
\
sudo
service nginx restart
;
sudo
-u
git
-H
bundle
exec
rake gitlab:check
RAILS_ENV
=
production
```
lib/support/init.d/gitlab
View file @
3682e726
...
...
@@ -167,14 +167,14 @@ start_gitlab() {
# Remove old socket if it exists
rm
-f
"
$socket_path
"
/gitlab.socket 2>/dev/null
# Start the web server
RAILS_ENV
=
$RAILS_ENV
script
/web start
RAILS_ENV
=
$RAILS_ENV
bin
/web start
fi
# If sidekiq is already running, don't start it again.
if
[
"
$sidekiq_status
"
=
"0"
]
;
then
echo
"The Sidekiq job dispatcher is already running with pid
$spid
, not restarting"
else
RAILS_ENV
=
$RAILS_ENV
script
/background_jobs start &
RAILS_ENV
=
$RAILS_ENV
bin
/background_jobs start &
fi
# Wait for the pids to be planted
...
...
@@ -197,11 +197,11 @@ stop_gitlab() {
# If the Unicorn web server is running, tell it to stop;
if
[
"
$web_status
"
=
"0"
]
;
then
RAILS_ENV
=
$RAILS_ENV
script
/web stop
RAILS_ENV
=
$RAILS_ENV
bin
/web stop
fi
# And do the same thing for the Sidekiq.
if
[
"
$sidekiq_status
"
=
"0"
]
;
then
RAILS_ENV
=
$RAILS_ENV
script
/background_jobs stop
RAILS_ENV
=
$RAILS_ENV
bin
/background_jobs stop
fi
# If something needs to be stopped, lets wait for it to stop. Never use SIGKILL in a script.
...
...
@@ -253,10 +253,10 @@ reload_gitlab(){
exit
1
fi
printf
"Reloading GitLab Unicorn configuration... "
RAILS_ENV
=
$RAILS_ENV
script
/web reload
RAILS_ENV
=
$RAILS_ENV
bin
/web reload
echo
"Done."
echo
"Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
RAILS_ENV
=
$RAILS_ENV
script
/background_jobs restart
RAILS_ENV
=
$RAILS_ENV
bin
/background_jobs restart
wait_for_pids
print_status
...
...
lib/tasks/gitlab/check.rake
View file @
3682e726
...
...
@@ -637,7 +637,7 @@ namespace :gitlab do
else
puts
"no"
.
red
try_fixing_it
(
sudo_gitlab
(
"RAILS_ENV=production
script
/background_jobs start"
)
sudo_gitlab
(
"RAILS_ENV=production
bin
/background_jobs start"
)
)
for_more_information
(
see_installation_guide_section
(
"Install Init Script"
),
...
...
lib/tasks/sidekiq.rake
View file @
3682e726
namespace
:sidekiq
do
desc
"GITLAB | Stop sidekiq"
task
:stop
do
system
*
%W(
script
/background_jobs stop)
system
*
%W(
bin
/background_jobs stop)
end
desc
"GITLAB | Start sidekiq"
task
:start
do
system
*
%W(
script
/background_jobs start)
system
*
%W(
bin
/background_jobs start)
end
desc
'GitLab | Restart sidekiq'
task
:restart
do
system
*
%W(
script
/background_jobs restart)
system
*
%W(
bin
/background_jobs restart)
end
desc
"GITLAB | Start sidekiq with launchd on Mac OS X"
task
:launchd
do
system
*
%W(
script
/background_jobs start_no_deamonize)
system
*
%W(
bin
/background_jobs start_no_deamonize)
end
end
script/rails
deleted
100755 → 0
View file @
d25bc257
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
APP_PATH
=
File
.
expand_path
(
'../../config/application'
,
__FILE__
)
require
File
.
expand_path
(
'../../config/boot'
,
__FILE__
)
require
'rails/commands'
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