0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Use native capistrano tasks with Media Temple's (gs) Grid-Service accounts.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

rt_capistrano¶ ↑

rt_capistrano is based on the mt-capistrano gem (0.0.5). ‘after’ methods were added to streamline the setup and deployment of Rails apps on (mt) Media Temple’s (gs) Grid-Server Ruby on Rails container. This gem makes it as easy as entering the following commands for initial deployment without having to execute any ‘mtr’ commands in between:

cap deploy:setup cap deploy:cold

Install

¶ ↑

gem install rt_capistrano

Example

¶ ↑

## Sample config/deploy.rb file:

require ‘rt_capistrano’

set :site, “00000” set :application, “app_name” set :webpath, “app_name.your_domain.com” set :domain, “your_domain.com” set :user, “serveradmin%your_domain.com” set :password, “serveradmin_password”

# repository elsewhere set :scm, :git set :repository, “your_git_repository” set :branch, “master” set :deploy_via, :remote_cache

# these shouldn’t be changed role :web, “#{domain}” role :app, “#{domain}” role :db, “#{domain}”, :primary => true set :deploy_to, “/home/#{site}/containers/rails/#{application}”

namespace :deploy do desc “Creates the database configuration file in the application’s config directory.” task :update_config, :roles => :app do database_yml = <<-CMD production: adapter: mysql database: your_production_database username: your_database_username password: your_database_password host: your_internal_database_url CMD put database_yml, “#{release_path}/config/database.yml” end after “deploy:update_code”, “deploy:update_config” end

Copyright © 2008 Andrew Porter. See LICENSE for details.