Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
f9317f73
Commit
f9317f73
authored
Feb 21, 2014
by
jsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unicorn defaults; keep using old version of config in Procfile
parent
5ef27431
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
Procfile
+1
-1
config/unicorn.heroku.rb
+17
-0
config/unicorn.rb
+5
-3
No files found.
Procfile
View file @
f9317f73
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
web: bundle exec unicorn -p $PORT -c ./config/unicorn.
heroku.
rb
config/unicorn.heroku.rb
0 → 100644
View file @
f9317f73
worker_processes
4
timeout
25
preload_app
true
before_fork
do
|
server
,
worker
|
Signal
.
trap
'TERM'
do
puts
'Unicorn master intercepting TERM and sending myself QUIT instead'
Process
.
kill
'QUIT'
,
Process
.
pid
end
end
after_fork
do
|
server
,
worker
|
Signal
.
trap
'TERM'
do
puts
'Unicorn worker intercepting TERM and doing nothing. Waiting for master to send QUIT'
end
::
Mongoid
.
default_session
.
disconnect
end
config/unicorn.rb
View file @
f9317f73
worker_processes
ENV
[
'WORKER_PROCESSES'
].
to_i
||
4
require
'tmpdir'
worker_processes
Integer
(
ENV
[
'WORKER_PROCESSES'
]
||
4
)
timeout
25
preload_app
true
listen
"unix:"
+
ENV
[
'DATA_DIR'
]
+
"/forum.sock"
,
:backlog
=>
512
pid
ENV
[
'DATA_DIR'
]
+
"/forum_unicorn.pid"
data_dir
=
ENV
[
'DATA_DIR'
]
||
Dir
.
tmpdir
listen
"unix:
#{
data_dir
}
/forum.sock"
,
:backlog
=>
512
pid
"
#{
data_dir
}
/forum_unicorn.pid"
before_fork
do
|
server
,
worker
|
Signal
.
trap
'TERM'
do
...
...
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