Can't seem to find where capistrano 2.15.4 is calling bundle install

175 views
Skip to first unread message

Vell

unread,
Jan 3, 2014, 2:49:40 PM1/3/14
to capis...@googlegroups.com
Versions:
  • Ruby: ruby-1.9.2-p320
  • Capistrano: 2.15.4
  • Rake / Rails / etc: Rails 4
Platform:
  • Working on.... CentOS
  • Deploying to... CentOS
Logs:
  • Please past logs (as completely as possible to a 3rd party pasting service such as pastie.org)
Files:
  • Capfile
  • deploy.rb
  • Stage files (production.rb, staging.rb)
I can't seem to find where capistrano is invoking the bundle install command when running update_code command. Right now all I see in the cap file is:

require 'bundler/capistrano'
set :rake, "bundle exec rake"

That is it. The current deployment code looks like:
Note: most of the code are custom methods but in the transaction block we are specifically calling setup, update_code, and create_sym_link from the capistrano gem.

 task :initial_deploy, :roles => [:app, :replicated] do
    transaction
do
      setup
      update_code
#expecting bundle install to run here
      create_symlink
    record_version
      create_httpd_config
      symlink_inside_htdocs
   
end
    create_db
    migrate_db
end

I know it has to be invoked somewhere since we are using it with rails 3 apps. I just can't seem to figure out where it is to tell that it is actually running when we try to deploy a rails 4 app.

Vell

unread,
Jan 3, 2014, 3:45:35 PM1/3/14
to capis...@googlegroups.com
Hmm OK. I see where this is being run.

* 2014-01-03 15:28:30 executing `deploy:finalize_update'

 

    triggering before callbacks for `
deploy:finalize_update'

  * 2014-01-03 15:28:30 executing `bundle:install'



I though this was not being called which was causing an error where the on db_create I get an error that says "the database configuration does not specify an adapter". I will need to take a closer look at the database.yml file and see if this is causing a problem.

Lee Hambley

unread,
Jan 3, 2014, 3:54:50 PM1/3/14
to capistrano
Your database.yml may or may not exist, or have a production section. (that's what that error message is telling you)

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/3bd16e38-ec4f-4f7f-b346-71fe4c5e812e%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages