Created
January 10, 2011 19:53
-
-
Save cparedes/773338 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
require "rvm/capistrano" | |
set :rvm_ruby_string, "ree" | |
set :rvm_type, :system | |
# Your Applications "Name" | |
set :application, "vertu" | |
# The URL to your applications repository | |
set :repository, "[email protected]:sholton311/Vertu.git" | |
set :scm, "git" | |
# Uncomment this line if you're using SVN. It makes deployments much faster | |
set :deploy_via, :remote_cache | |
# Require subversion to do an export instead of a checkout. | |
set :checkout, 'export' | |
# The user you are using to deploy with (This user should have SSH access to your server) | |
set :user, "deploy" | |
# We want to deploy everything under your user, and we don't want to use sudo | |
set :use_sudo, false | |
# Where to deploy your application to. | |
set :deploy_to, "/home/#{user}/rails_apps/#{application}" | |
# -------------------------------- Server Definitions -------------------------------- | |
# Define the hostname of your server. If you have multiple servers for multiple purposes, we can define those below as well. | |
set :server_name, "vs115844.blueboxgrid.com" | |
# We're assuming you're using a single server for your site, but if you have a separate asset server or database server, you can specify that here. | |
role :app, server_name | |
role :web, server_name | |
role :db, server_name, :primary => true | |
# -------------------------------- Final Config -------------------------------- | |
# This configuration option is helpful when using svn+ssh but doesn't hurt anything to leave it enabled always. | |
default_run_options[:pty] = true | |
namespace :deploy do | |
task :restart do | |
run "touch #{deploy_to}/current/tmp/restart.txt" | |
end | |
task :start do | |
run "touch #{deploy_to}/current/tmp/restart.txt" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment