For that purpose, just use these command: bundle install --without production
This card is the copycat from this awesome article, all thanks to Zsolt Agoston. # Extract the private key openssl pkcs12...
...deploys) available via ssh by ssh_key. Deploy via remote_cache: require 'rvm/capistrano' require 'bundler/capistrano' set :application, '_proj_' set :rails_env, 'production' set :domain, '_user@your_deploy_domain_'
...File.join(ENV['HOME'], '.ssh', '_ssh_key_for_staging_machine.pem_') set :branch, 'master' set :deploy_via, :remote_cache set :bundle_gemfile, 'Gemfile' set :rake_file, "#{deploy_to}/current/Rakefile" role :web, domain role :app, domain
...database_cleaner' gem 'email_spec' gem 'poltergeist' gem 'launchy' gem 'selenium-webdriver' end Run bundle install Ensure your spec_helper.rb looks similar with this: require 'rubygems' require 'spork' #uncomment the following...
...gem 'capistrano' gem 'rvm-capistrano' end Then cd to project root folder and run: bundle install capify . setup your config/deploy.rb file, here some useful examples cap deploy:setup #before first...
Best results in other decks
Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this: bundle update cucumber-rails ... you might think this will only...
...is a dependency of cucumber-rails), which will break all your tests. The fix Bundler >= 1.14 has a --conservative flag. Using the conservative flag allows bundle update GEM to update...
Install the latest bundler version: gem install bundler Fetching bundler-2.3.5.gem Successfully installed bundler-2.3.5 1 gem installed Update the bundler version in Gemfile.lock: bundle update --bundler Confirm it worked:
...n2 Gemfile.lock BUNDLED WITH 2.3.5 Notes: Bundler should automatically detect the latest installed version. If it does not, you can specify your preferred version like so: bundle _2.1.2_ update --bundler...