Created
February 23, 2009 19:34
-
-
Save fairchild/69121 to your computer and use it in GitHub Desktop.
poolparty spec for poolparty website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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