Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Move deploy file to deploy.example.rb and add some info for copying i…
Browse files Browse the repository at this point in the history
…t over.
  • Loading branch information
jdpace committed Aug 16, 2010
1 parent dccfff3 commit 021a2f0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
db/*.sqlite3
log/*.log
tmp/**/*
config/deploy.rb
22 changes: 14 additions & 8 deletions config/deploy.rb → config/deploy.example.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
require 'config/environment'
# Deploy Config
# =============
#
# Copy this file to config/deploy.rb and customize it as needed.
# Then run `cap deploy:setup` to set up your server and finally
# `cap deploy` whenever you would like to deploy Errbit. Refer
# to the Readme for more information.

set :application, "errbit"
set :repository, "http://github.com/jdpace/errbit.git"

set :scm, :git
set :scm_verbose, true
set(:current_branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't determine current branch") }
set :branch, defer { current_branch }
role :web, "errbit.example.com"
role :app, "errbit.example.com"
role :db, "errbit.example.com", :primary => true

set :user, :deploy
set :use_sudo, false
Expand All @@ -19,9 +24,10 @@
set :copy_exclude, [".git"]
set :copy_compression, :bz2

role :web, Errbit::Config.host
role :app, Errbit::Config.host
role :db, Errbit::Config.host, :primary => true
set :scm, :git
set :scm_verbose, true
set(:current_branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't determine current branch") }
set :branch, defer { current_branch }

after 'deploy:update_code', 'bundler:install'

Expand Down

0 comments on commit 021a2f0

Please sign in to comment.