AT&T Interactive R&D

 
 

Examples

This site is maintained using the following specfile

   1  <script src="http://gist.github.com/69121.js"></script>
   2  
   3  
   4  # Basic poolparty template
   5  require "poolparty_apache2_plugin"
   6  
   7  pool :cb do  
   8    instances 2..5
   9    port 80
  10    ami "ami-1cd73375" #Alestic's base Ubuntu AMI
  11    
  12    cloud :app do
  13          
  14      apache do
  15        installed_as_worker      
  16        
  17        has_virtualhost do        
  18          name "poolpartyrb.com"
  19          listen("8080")
  20          virtual_host_entry ::File.join(File.dirname(__FILE__), "cb/templates", "virtual_host.conf.erb")
  21          
  22          # We are going to have a repository that is updated across the servers
  23          has_git({:name => "poolpartyrepos", 
  24            :source => "git://github.com/auser/poolparty-website.git", 
  25            :cwd => "/var/www/poolpartyrb.com"}) do
  26          
  27            # We don't keep the site in the top level of the repos, so let's create
  28            # a symlink so that the public directory is a symlink of the root level
  29            # site directory
  30            has_symlink({:name => "/var/www/poolpartyrb.com/public", :from => "/var/www/poolpartyrb.com/repos/site"})
  31          end
  32        end
  33      end
  34      
  35    end
  36  
  37  end