Skip to content

Instantly share code, notes, and snippets.

@fairchild
Forked from mikewadhera/gist:95529
Created April 15, 2009 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fairchild/95530 to your computer and use it in GitHub Desktop.
Save fairchild/95530 to your computer and use it in GitHub Desktop.
pool :involver_rails do
cloud :nginx do
instances 2..2 # binds against 2 elastic IPs
has_package "nginx"
proxy {:source_port=>80, :destination_port=>8080, :destination_cloud=>:app}
end
cloud :app do
instances 2..12
# calls register_backend(self) on all members of cloud nginx on bootstrap & configure
end
cloud :db do
mysql do
...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment