Permalink
Browse files

use more sensible config for the rails app listening port

  • Loading branch information...
1 parent ec05b74 commit bbb7b18859f1b37ffac46e958b7346a52d44f9f0 @jsierles committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rails/templates/default/app_nginx.conf.erb
@@ -1,6 +1,6 @@
upstream <%= @full_name %> {
<% if @app[:haproxy] -%>
- server 127.0.0.1:<%= @node[:haproxy][:listen_port] %>;
+ server 127.0.0.1:<%= @app[:listen_port] || 8600 %>;
<% else -%>
server unix:/u/apps/<%= @app_name %>/shared/sockets/unicorn.sock fail_timeout=0;
<% end -%>

0 comments on commit bbb7b18

Please sign in to comment.