Skip to content

Instantly share code, notes, and snippets.

@fairchild
Created February 23, 2009 19:34
Show Gist options
  • Select an option

  • Save fairchild/69121 to your computer and use it in GitHub Desktop.

Select an option

Save fairchild/69121 to your computer and use it in GitHub Desktop.
poolparty spec for poolparty website
# Basic poolparty template
require "poolparty_apache2_plugin"
pool :opensource do
instances 1..1
port 80
ami "ami-1cd73375" #Alestic's old base Ubuntu AMI
#ami "ami-7cfd1a15" #Alestic's Ubuntu 8.10 Intrepid base AMI
base_keypair_path ENV["EC2_CONFIG_DIR"]
keypair "poolparty_oncourse_atti"
verbose true
cloud :app do
apache do
installed_as_worker
has_virtualhost do
name "poolpartyrb.com"
listen("8080")
virtual_host_entry ::File.join(File.dirname(__FILE__), "templates", "virtual_host.conf.erb")
# We are going to have a repository that is updated across the servers
has_git({:name => "poolpartyrepos",
:source => "git://github.com/auser/poolparty-website.git",
:cwd => "/var/www/poolpartyrb.com"}) do
# We don't keep the site in the top level of the repos, so let's create
# a symlink so that the public directory is a symlink of the root level
# site directory
has_symlink({:name => "/var/www/poolpartyrb.com/public", :from => "/var/www/poolpartyrb.com/repos/site"})
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment