Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (60 sloc) 1.91 KB
# What this script is missing for Perform
# =======================================
#
# * Setup for SQL Server / FreeTDS
# * nginx setup (other babushka scripts for that?)
# * blue/green
# *
meta :stack do
template do
# PostgreSQL variables
set :db_name, "#{basename}_production"
set :username, basename
# Web Repo
set :app_name, basename
set :absolute_rails_root, "/home/#{basename}/current"
set :app_env, 'production'
set :app_pid_dir, '~/current/tmp'
set :app_root, '~/current'
set :bin_path, '/usr/local/bin'
set :data_required, 'no'
set :enable_ssl, 'yes'
set :extra_domains, ''
set :force_ssl, 'no'
set :home_dir_base, '/home'
set :rails_env, 'production'
set :rails_root, '~/current'
set :unicorn_config_within_app, "/home/#{basename}/current/config/unicorn.rb"
set :vhost_type, 'unicorn'
set :web_repo_root, '~/current'
end
end
dep 'jack.stack' do
log "Configuring a stack"
set :header_name, 'global'
set :domain, 'global.pageuppeople.com'
set :www_aliases, ''
# Environment, Ruby and Shared Libraries
requires 'iptables', 'ruby19.src', 'libxml.managed', 'libxslt.managed'
# file uploads & manipulation
requires 'imagemagick.managed'
# Postgres Database plus Solr (Sunspot) Text Index
requires 'existing postgres db', 'sunspot running'
# Standard Rails Stack
requires 'web repo', 'webapp', 'app bundled', 'rails.logrotate'
# Fire up Unicorn
requires 'unicorn rc script'
end
dep 'perform.stack' do
log "Configuring a stack"
set :header_name, username
set :domain, 'perform.pageuppeople.com'
set :extra_domains, 'altperform.pageuppeople.com'
set :www_aliases, ''
# Environment, Ruby and Shared Libraries
requires 'ruby19.src', 'libxml.managed', 'libxslt.managed'
# Fire up Unicorn
requires 'unicorn rc script'
# Install and start nginx
requires 'webserver configured.nginx'
end