Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

changed perms of one_thin_server.erb

  • Loading branch information...
commit 69f14377dca3d3885ac559d5074d61f58522719b 1 parent 3d97740
Mike Howard authored
4 .gitignore
... ... @@ -1,6 +1,6 @@
1 1 cfg-out/
2   -config/
3   -site/
  2 +./config/
  3 +./site/
4 4 *~
5 5 doc/
6 6 !lib/tdd_deploy/doc/
14 lib/tdd_deploy/site-erb/app_hosts/config/one_thin_server.conf.erb
... ... @@ -0,0 +1,14 @@
  1 +---
  2 +chdir: <%= site_doc_root %>
  3 +environment: production
  4 +address: 127.0.0.1
  5 +timeout: 30
  6 +log: log/thin.log
  7 +pid: <%= site_doc_root %>/tmp/pids/thin.pid
  8 +max_conns: 1024
  9 +max_persistent_conns: 512
  10 +require: []
  11 +
  12 +wait: 30
  13 +server: 1
  14 +daemonize: true
14 lib/tdd_deploy/site-erb/app_hosts/config/thin.conf.erb
... ... @@ -0,0 +1,14 @@
  1 +chdir: <%= site_doc_root %>
  2 +environment: production
  3 +address: 127.0.0.1
  4 +port: <%= site_base_port %>
  5 +timeout: 30
  6 +log: log/thin.log
  7 +pid: <%= site_doc_root %>/tmp/pids/thin.pid
  8 +max_conns: 1024
  9 +max_persistent_conns: 512
  10 +require: []
  11 +
  12 +wait: 30
  13 +servers: <%= site_num_servers %>
  14 +daemonize: true
11 lib/tdd_deploy/site-erb/app_hosts/site/monitrc.erb
... ... @@ -0,0 +1,11 @@
  1 +<% ((site_base_port)...(site_base_port+site_num_servers)).each do |port| %>
  2 +check process <%= site %>_server_<%= port %> with pidfile <%= "#{site_doc_root}/../../tmp/pids/thin.#{port}.pid" %>
  3 + start program = "<%= "#{site_special_dir}/thin_one_server start #{port}" %>" with timeout 60 seconds
  4 + stop program = "<%= "#{site_special_dir}/thin_one_server stop #{port}" %>"
  5 + if failed host localhost port <%= port %> protocol http
  6 + and request "/"
  7 + then restart
  8 + if 3 restarts within 5 cycles then timeout
  9 + group server
  10 +
  11 +<% end %>
7 lib/tdd_deploy/site-erb/app_hosts/site/one_thin_server.erb
... ... @@ -0,0 +1,7 @@
  1 +#! /bin/sh
  2 +# must have perms 0755
  3 +
  4 +PORT=$1
  5 +
  6 +cd <%= site_doc_root %>
  7 +bundle exec thin --config ./config/thin_one_server.config --port $PORT start
2  lib/tdd_deploy/version.rb
... ... @@ -1,3 +1,3 @@
1 1 module TddDeploy
2   - VERSION = '0.1.10.pre2'
  2 + VERSION = '0.1.10.pre3'
3 3 end

0 comments on commit 69f1437

Please sign in to comment.
Something went wrong with that request. Please try again.