opscode-cookbooks/application_ruby — pull request #3 by threetee (2012-05-17 08:35:57+00:00)
Title: [COOK-1297] Modify 'port' attribute to be a String instead of an Integer

This change modifies the 'port' attribute to be a String, which allows you to configure unicorn to use a socket via the unicorn sub-resource LWRP. Example:

application "my_app" do
path "/deploy/to/dir"
owner "app-user"
group "app-group"

repository "http://git.example.com/my-app.git"
branch "production"

rails do
# Rails-specific configuration
end

unicorn do
port "/tmp/unicorn_eaglerider.sock"
end
end

Note that the code in this pull request will *not* work without pulling in the corresponding changes to the unicorn cookbook from https://github.com/opscode-cookbooks/unicorn/pull/2.