capistrano-recipe
Under development
require 'capistrano/recipe'
Required configs
set :user, 'admin'
set :group, 'admin'
set :domain, 'www.example.com'
Unicorn
set :unicorn_setup_settings, {
port: 80
}
Passenger
set :passenger_setup_settings, {
port: 80
}
Thin
set :thin_setup_settings, {
port: 80
}
Database
set :db_setup_settings, {
common: {
host: '127.0.0.1',
database: 'db_name'
}
}
Gateways
set :gateways_setup_settings, {
common: {
example: {
username: 'foo',
password: 'bar'
}
}
}
Mailers
set :mailer_setup_settings, {
common: {
user_name: "email@example.com",
password: "secret"
}
}
Newrelic
set :newrelic_setup_settings, {
common: {
app_name: 'AppName',
license_key: 'secret'
},
staging: {
app_name: 'AppName (Staging)'
}
}
Settler
set :settler_setup_settings, {
name: 'String Text', # "name" => {"alt"=>"name", "value"=>"String Text"}
price: 100.0, # "price" => {"alt"=>"price", "value"=>"100.0", "typecast"=>"float"}
views: 9, # "views" => {"alt"=>"views", "value"=>"9", "typecast"=>"integer"}
approved: true, # "approved" => {"alt"=>"approved", "value"=>"true", "typecast"=>"boolean"}
deleted: false, # "deleted" => {"alt"=>"deleted", "value"=>"false", "typecast"=>"boolean"}
published_at: Time.now, # "published_at"=> {"alt"=>"published_at", "value"=>"2013-04-03 16:25:26 -0300", "typecast"=>"datetime"}
password: { # "password" => {"alt"=>"Password", "value"=>"secret", "typecast"=>"password"}
alt: 'Password',
value: 'secret',
typecast: 'password'
}
}
Shards
set :shards_setup_settings, {
databases: {
production:{
slave1: {}
}
}
}
Tire
set :tire_setup_settings, {
common: {
url: "http://localhost:9200"
}
}
Uploader
set :uploader_setup_settings, {
common: {
fog_credentials: {
provider: 'Rackspace'
},
fog_directory: 'public_assets'
}
}
Sunspot
set :sunspot_setup_settings, {
common: {
solr: {
path: '/solr/foo'
}
},
development: {
log_level: 'INFO'
}
}
Resque
set :resque_setup_settings, {
'production' => 'example.com:6379'
}