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.