KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I got the server with the configuration above. This is the important part of my deploy.rb recipe: $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require 'rvm/capistrano' require 'bundler/capistrano' set :rvm_ruby_string, 'ruby-1.9.2-p290' set :rvm_type, :system set :bundle_flags, "--deployment" set :default_environment, { 'PATH' => ENV['PATH'], 'RAILS_ENV' => ENV['RAILS_ENV'] } set :stages, %w(staging production) require 'capistrano/ext/multistage' Running cap staging deploy as is, leads to an error: * executing "cd /mnt/data-store/project/releases/shared && bundle install --gemfile /mnt/data-store/project/releases/shared/Gemfile --path /mnt/data-store/project/shared/bundle --deployment --without development test" ** [out :: localhost] The --deployment flag requires a Gemfile.lock. Please make sure you have checked your Gemfile.lock into version control before deploying. ... rolling back ... failed: "env PATH=... RAILS_ENV=staging rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-1.9.2-p290' -c 'cd /mnt/data-store/project/releases/shared && bundle install --gemfile /mnt/data-store/project/releases/shared/Gemfile --path /mnt/data-store/project/shared/bundle --deployment --without development test'" on localhost Gemfile and Gemfile.lock are in the source control. I ran bundle install locally first to generate the .lock file. But the bundler/capistrano points to /mnt/data-store/project/releases/shared/Gemfile so I just copied manually both files there. I'm sure I'm doing it wrong here. I guess it should be copied automatically. Executed deploy again (1) and it didn't fail on the bundle install, it even had Your bundle is complete! It was installed into /mnt/data-store/project/shared/bundle in the output. BUT, one of my cap tasks executes a rake. The result of this is: *Could not fi
Tags (comma-separated)
Save Edits
Cancel