I re-ran the capify on the project after noticing the capify file was
close to 8MB in size.  I am not sure what happened to it, but I was
able to deploy after the file was recreated.

Thanks for the help.

On Oct 27, 10:30 pm, chris <[EMAIL PROTECTED]> wrote:
> Here is a my deploy file (with a couple minor adjustments).  Based on
> what you guys said it looks ok to me.
>
> Am I missing something that is starting me right in the face?
>
> I am using Capistrano v2.5.0
> ======
> set :application, "leaguesmart"
> set :repository,  "[EMAIL PROTECTED]:chrisolsen/leaguesmart.git"
> set :domain, "lixx-xx.members.linode.com"
>
> default_run_options[:pty] = true  # ensures we get a password prompt
> from Git
>
> set :user, "foo"
> set :runner, "foo"
>
> set :scm, :git
> set :scm_username, "foo"
> set :scm_passphrase, "bar"
> set :scm_verbose, true
> set :branch, "master"  # deploy to branch
>
> set :deploy_to, "/var/rails/#{application}"
> set :deploy_via, :remote_cache
> ssh_options[:paranoid] = false
> set :use_sudo, false
>
> role :app, domain
> role :web, domain
> role :db,  domain, :primary => true
>
> namespace :init do
>   desc "create database.yml"
>     task :database_yml do
>       set :db_user, "root" #proc{Capistrano::CLI.ask("database user:
> ")}
>       set :db_pass, proc{Capistrano::CLI.password_prompt("database
> password: ")}
>       database_configuration =<<-EOF
>   ---
>   login: &login
>     adapter: mysql
>     database: #{application}
>     host: localhost
>     username: #{db_user}
>     password: #{db_pass}
>
>   production:
>     <<: *login
>       EOF
>
>       run "mkdir -p #{shared_path}/config"
>       put database_configuration, "#{shared_path}/config/database.yml"
>     end
> end
>
> namespace :localize do
>   desc "copy shared configurations to current"
>   task :copy_shared_configurations, :roles => [:app] do
>     run "ln -nsf #{shared_path}/config/database.yml #{current_path}/
> config/database.yml"
>   end
>
>   desc "Sync the uploads to the new current project"
>   task :sync_uploads, :roles => [:app] do
>     run "mkdir -p #{shared_path}/uploads"
>     run "rm -rf #{current_path}/public/uploads"
>     run "chown #{user}:#{user} #{shared_path}/uploads/"
>     run "ln -nsf #{shared_path}/uploads #{current_path}/public/"
>   end
>
>   desc "Create symlink to point to the shared sitemap.xml file"
>   task :make_sitemap_script_executable, :roles => [:app] do
>     run "chmod +x #{current_path}/script/sitemaps"
>   end
> end
>
> namespace :misc do
>   desc "restart the server"
>   task :restart do
>     run "touch #{current_path}/tmp/restart.txt"
>   end
>
>   desc "perform migrations"
>   task :migrate do
>     run "cd #{current_path}; rake db:migrate RAILS_ENV=production"
>   end
> end
>
> after "deploy:symlink", "localize:copy_shared_configurations"
> after "deploy:symlink", "localize:sync_uploads"
> after "deploy:symlink", "localize:make_sitemap_script_executable"
> =====
>
> On Oct 27, 8:53 am, Jamis Buck <[EMAIL PROTECTED]> wrote:
>
> > If those are the only places...then I strongly suspect you've got  
> > something like this:
>
> >    set :application, leaguesmart
>
> > What you really want is:
>
> >    set :application, "leaguesmart"
>
> > Note the quotes. Without those, the first leaguesmart reference is  
> > expected to resolve to a variable or method, which Capistrano is  
> > complaining about, because it doesn't exist.
>
> > - Jamis
>
> > On Oct 27, 2008, at 8:10 AM, chris wrote:
>
> > > The only places that the word leaguesmart exists in the deploy script
> > > is for the :application and for the set :repository
> > > "[EMAIL PROTECTED]". I have also done a search throughout the
> > > project for the word leaguesmart, but cannot find any place that it
> > > shouldn't exist.
>
> > > I checked the history for the deploy.rb file and it hasn't been
> > > changed since the end of August.  Is there some place else that could
> > > be the problem?
>
> > > On Oct 26, 10:53 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> > >> Looks like you're referencing a variable 'leaguesmart' without first
> > >> declaring it? Just a guess, without having seen your deployment  
> > >> recipes.
>
> > >> - Jamis
>
> > >> On Oct 26, 2008, at 10:33 PM, chris wrote:
>
> > >>> I am not sure why the deployment script is suddenly failing.
>
> > >>> Here is what I get when I try to run the cap deploy cmd:
> > >>> ==========
> > >>> $ cap deploy
> > >>> /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > >>> configuration/variables.rb:122:in `method_missing': undefined local
> > >>> variable or method `leaguesmart' for #<Capistrano::Configuration:
> > >>> 0x25760> (NameError)
> > >>>    from Capfile:1:in `load'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > >>> configuration/loading.rb:172:in `load_from_file'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > >>> configuration/loading.rb:89:in `load'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > >>> configuration/loading.rb:86:in `load'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > >>> configuration/loading.rb:86:in `each'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > >>> configuration/loading.rb:86:in `load'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/
> > >>> capistrano/cli/
> > >>> execute.rb:64:in `load_recipes'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/
> > >>> capistrano/cli/
> > >>> execute.rb:64:in `each'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/
> > >>> capistrano/cli/
> > >>> execute.rb:64:in `load_recipes'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/
> > >>> capistrano/cli/
> > >>> execute.rb:30:in `execute!'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/
> > >>> capistrano/cli/
> > >>> execute.rb:14:in `execute'
> > >>>    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/bin/cap:4
> > >>>    from /usr/bin/cap:19:in `load'
> > >>>    from /usr/bin/cap:19
>
> > >>> Any ideas to why this is happening?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to