I'm attempting use of Capistrano for the first time, and have followed
the steps on the wiki to "Manage database.yml securely".

I've put both database.yml.erb and capistrano_database.rb into
multiple locations, all with the same results.  I've tried config/
deploy/ and now deploy/

This is the error
-------------
cap deploy:setup
/home/trey/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:36:in `require': no such file to load --
deploy/capistrano_database (LoadError)


Here's my config/deploy.rb
----------

#############################################################
##   Application
##############################################################
set :application, "ballotbox"

#############################################################
##   Settings
##############################################################
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'deploy')
require "deploy/capistrano_database"

$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib
directory to the load path.
require "rvm/capistrano"                  # Load RVM's capistrano
plugin.
set :rvm_ruby_string, 'ruby-1.9.2-p290@ballotbox'        # Or whatever
env you want it to run in.

require "bundler/capistrano"

set :use_sudo, false

#############################################################
##   Servers
##############################################################
set :user, "ballotbox"

set :deploy_to, "/usr/share/#{application}"

set :domain, "liberalartsvoting.tamu.edu"
role :web, domain
role :app, domain
role :db, domain, :primary => true

#############################################################
##   Git
##############################################################
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`,
`perforce`, `subversion` or `none`
set :scm, :git
set :repository,  "[email protected]:ballotbox.git"
set :branch, "master"

#############################################################
##   Passenger
##############################################################
namespace :passenger do
  desc "Restart Application"
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

after :deploy, "passenger:restart"


The "$LOAD_PATH" was an attempt to force the deploy/ directory to be
loaded.  My Capfile looks like this...


$ cat Capfile
load 'deploy' if respond_to?(:namespace) # cap2 differentiator

# Uncomment if you are using Rails' asset pipeline
load 'deploy/assets'

Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each
{ |plugin| load(plugin) }

load 'config/deploy' # remove this line to skip loading any of the
default tasks


Thanks
- Trey

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to