Changeset 437

Show
Ignore:
Timestamp:
02/29/08 18:03:45 (10 months ago)
Author:
mbailey
Message:

put :mongrel_port in place of hard coded figure (8000)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r425 r437  
    11== SVN 
     2 
     3== 1.99.14 (Feb 21, 2008) 
     4 
     5* monit template now uses :mongrel_port instead of 8000 
    26 
    37== 1.99.11 (Feb 21, 2008) 
  • trunk/deprec.gemspec

    r433 r437  
    99  spec.homepage = 'http://www.deprec.org/' 
    1010  spec.rubyforge_project = 'deprec' 
    11   spec.version = '1.99.12
     11  spec.version = '1.99.14
    1212  spec.summary = 'deployment recipes for capistrano' 
    1313  spec.description = <<-EOF 
  • trunk/lib/deprec/templates/monit/monit_mongrel.erb

    r430 r437  
    11<% mongrel_servers.times do |counter| -%> 
    2   check process mongrel-<%=8000+counter%> with pidfile <%= mongrel_pid_dir %>/mongrel.<%=8000+counter%>.pid 
     2  check process mongrel-<%=mongrel_port+counter%> with pidfile <%= mongrel_pid_dir %>/mongrel.<%=mongrel_port+counter%>.pid 
    33        group mongrel 
    4         start program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -a 127.0.0.1 -c <%= deploy_to %>/current --user <%= mongrel_user %> --group <%= mongrel_group %> -p <%=8000+counter%> -P <%= mongrel_pid_dir %>/mongrel.<%=8000+counter%>.pid -l <%= mongrel_log_dir %>/mongrel.<%=8000+counter%>.log" 
    5         stop program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails stop -P <%= mongrel_pid_dir %>/mongrel.<%=8000+counter%>.pid" 
     4        start program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -a 127.0.0.1 -c <%= deploy_to %>/current --user <%= mongrel_user %> --group <%= mongrel_group %> -p <%=mongrel_port+counter%> -P <%= mongrel_pid_dir %>/mongrel.<%=mongrel_port+counter%>.pid -l <%= mongrel_log_dir %>/mongrel.<%=mongrel_port+counter%>.log" 
     5        stop program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails stop -P <%= mongrel_pid_dir %>/mongrel.<%=mongrel_port+counter%>.pid" 
    66         
    7         if failed host 127.0.0.1 port <%=8000+counter%> protocol http 
     7        if failed host 127.0.0.1 port <%=mongrel_port+counter%> protocol http 
    88        with timeout 10 seconds 
    99        then alert