Skip to content

Instantly share code, notes, and snippets.

@robbyrussell
Created July 24, 2008 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbyrussell/2219 to your computer and use it in GitHub Desktop.
Save robbyrussell/2219 to your computer and use it in GitHub Desktop.
# Required for using Mongrel with Capistrano2
# gem install palmtree
require 'palmtree/recipes/mongrel_cluster'
########################################################################
# Rails Boxcar - Capistrano Deployment Recipe
# Configuration
########################################################################
# What is the name of your application? (no spaces)
# Example:
# set :application_name, 'my_cool_app'
set :application_name, 'rubyurl'
# What is the hostname of your Rails Boxcar server?
# Example:
# set :boxcar_server, 'rc1.railsboxcar.com'
set :boxcar_server, '198.145.115.XX'
# What is the username of your Rails Boxcar user that you want
# to deploy this application with? Note that you should use the same
# username and password as you use to access your repository. This is
# due to a limitation in Capistrano.
set :boxcar_username, 'tarzan'
# Where is your source code repository?
#
# Subversion Example:
#
#set :user, 'rubyurl'
#set :repository, 'https://svn.roundhaus.com/planetargon/rubyurl_2-0/trunk'
#
# If you won't be making any code changes on the boxcar itself, it's
# a good idea to do an export instead of a checkout (default) so that
# you avoid all of the .svn cruft.
#set :deploy_via, :export
#
# Git Example:
#
set :scm, "git"
set :repository, "git@github.com:/robbyrussell/rubyurl.git"
###################################################
# CUSTOM TASKS
###################################################
#
# By default, Boxcar Conductor will add symlinks for the following:
# * config/database.yml
# * log/
#
# If you'd like to have Boxcar Conductor symlink any other files and/or directories,
# you can add in a custom task at the bottom of this deploy.rb by following this example:
#
# namespace :example do
# desc "Link more remote files"
# task :link_remote_files do
# run "ln -nfs #{app_shared_dir}/data #{release_path}/data"
# run "ln -nfs #{app_shared_dir}/exports #{release_path}/public/exports"
# end
# end
#
# after "boxcar:deploy:link_files", "example:link_remote_files"
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment