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
Boxiang Sun
gitlab-ce
Commits
3532b8db
Commit
3532b8db
authored
Apr 28, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove config lines in one place
parent
628163b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/unicorn/unicorn_spec.rb
spec/unicorn/unicorn_spec.rb
+3
-3
No files found.
spec/unicorn/unicorn_spec.rb
View file @
3532b8db
...
...
@@ -11,22 +11,22 @@ describe 'Unicorn' do
# Remove these because they make setup harder.
config_lines
=
config_lines
.
reject
do
|
line
|
%w[
working_directory
worker_processes
listen
pid
stderr_path
stdout_path
]
.
any?
{
|
prefix
|
line
.
start_with?
(
prefix
)
}
end
config_lines
=
config_lines
.
reject
{
|
l
|
l
.
start_with?
(
'working_directory'
)
}
config_lines
<<
"working_directory '
#{
Rails
.
root
}
'"
# We want to have exactly 1 worker process because that makes it
# predictable which process will handle our requests.
config_lines
=
config_lines
.
reject
{
|
l
|
l
.
start_with?
(
'worker_processes'
)
}
config_lines
<<
'worker_processes 1'
@socket_path
=
File
.
join
(
Dir
.
pwd
,
'tmp/tests/unicorn.socket'
)
config_lines
=
config_lines
.
reject
{
|
l
|
l
.
start_with?
(
'listen'
)
}
config_lines
<<
"listen '
#{
@socket_path
}
'"
ready_file
=
'tmp/tests/unicorn-worker-ready'
...
...
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