Permalink
Browse files

changed perms of one_thin_server.erb

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

0 comments on commit 69f1437

Please sign in to comment.