Skip to content

Instantly share code, notes, and snippets.

@auser
Created November 14, 2008 17:00
Show Gist options
  • Save auser/24982 to your computer and use it in GitHub Desktop.
Save auser/24982 to your computer and use it in GitHub Desktop.
# Basic poolparty template
pool :clouds do
plugin_directory "#{File.dirname(__FILE__)}/plugins"
cloud :app do
instances 2..3
port 80
forwarding_port 8080
using :ec2
rails do
install
add_actions_for("/var/www/poolr.com")
end
has_deploydirectory({:from => "#{File.dirname(__FILE__)}/..",
:name => "Rails app",
:to => "/var/www/poolr.com",
:notify => get_exec("migrate-rails-poolr.com")})
mysql do
install
has_database(:name => "poolr_prod", :user => "poolr", :password => "p00lr")
end
apache do
has_passengersite do
name "poolr.com"
listen 8080
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment