RailsCasts Pro episodes are now free!

Learn more or hide this

Peter Berg's Profile

GitHub User: peteratticusberg

Comments by Peter Berg

Avatar

If you're using the nginx-unicorn-postgres template and you can't get this to work:

This is because this template doesn't include a load-balancer. (Unicorn only works on a single machine). In the railscast, haproxy serves as the load balancer and runs in the web instance and delegates to the app instances. haproxy though is not a part of the nginx-unicorn-postgres template. As I understand it, you can either

a) add haproxy to your rubber setup and include it in the web role or
b) if you're using AWS, you can use amazon's ELB (Elastic Load Balancer)

More info on this stuff at the following links.

https://github.com/rubber/rubber/issues/325
https://groups.google.com/forum/?fromgroups=#!topic/rubber-ec2/BxxlrZ1lEug

Also see Rob Bastian's comment above