conf changes, kill nginx with go_cold
This commit is contained in:
parent
2261a0d8a4
commit
b55a99ec09
4 changed files with 4 additions and 7 deletions
|
|
@ -28,9 +28,6 @@ http {
|
|||
# gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
||||
upstream thin_cluster {
|
||||
server unix:/tmp/thin.0.sock;
|
||||
server unix:/tmp/thin.1.sock;
|
||||
server unix:/tmp/thin.2.sock;
|
||||
server unix:/tmp/thin.3.sock;
|
||||
}
|
||||
|
||||
server {
|
||||
|
|
|
|||
|
|
@ -1,16 +1,15 @@
|
|||
package :nginx do
|
||||
package :nginx, :provides=> :webserver do
|
||||
description 'Nginx HTTP server'
|
||||
version '0.7.67'
|
||||
source "http://nginx.org/download/nginx-#{version}.tar.gz"
|
||||
requires :nginx_dependencies
|
||||
end
|
||||
|
||||
package :nginx_conf, :provides=> :webserver do
|
||||
package :nginx_conf do
|
||||
description 'Nginx conf file'
|
||||
transfer "#{File.dirname(__FILE__)}/../conf/nginx.conf", '/usr/local/conf/nginx.conf', :render => true do
|
||||
pre :install, "mkdir -p /usr/local/sbin/conf/"
|
||||
end
|
||||
requires :nginx
|
||||
end
|
||||
|
||||
package :nginx_dependencies do
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ policy :diaspora, :roles => [:pivots] do
|
|||
requires :webserver
|
||||
requires :scm
|
||||
requires :vim
|
||||
requires :nginx_conf
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ require: []
|
|||
|
||||
max_persistent_conns: 512
|
||||
environment: production
|
||||
servers: 4
|
||||
servers: 1
|
||||
daemonize: true
|
||||
#chdir: /usr/applications/localhash/current
|
||||
socket: /tmp/thin.sock
|
||||
|
|
|
|||
Loading…
Reference in a new issue