Ruby on rails 4.1.6 + Capistrano 3: purge gems on deployment server

Mauro Nidola

Hy guys, I have a server with apache, passenger 4.0.50, ruby 2.1.2 (started with 1.9.3), RVM and dozen of ruby on rails 4.1.x apps.

RVM is used only to manage ruby versions.

Follows the bundler configuration for each app:

BUNDLE_FROZEN: '1'

BUNDLE_PATH: "/PATH/TO/DEPLOYED/APP/shared/bundle"

BUNDLE_WITHOUT: development:test

BUNDLE_DISABLE_SHARED_GEMS: '1'

In order to save disk space (a lot of space) I would like to remove old gems of each application using bundle clean

The idea is to keep 2 releases (capistrano) and to run the command before a new deploy in order to keep gems for the last release.

The problem is that gems installed whit ruby 1.9.3 are not removed.

Can you please confirm that:

  1. Gems for ruby 2.1.2 are installed in /PATH/TO/DEPLOYED/APP/shared/bundle/ruby/2.1.0/gems
  2. Gems for ruby 1.9.3 are installed in /PATH/TO/DEPLOYED/APP/shared/bundle/ruby/1.9.1/gems
  3. I can remove directory /PATH/TO/DEPLOYED/APP/shared/bundle/ruby/1.9.1/gems since I'm not using ruby 1.9 anymore

Many thanks in advance for your help.

Mauro

Senjai

You dont use ruby 1.9.x anymore, so just remove the gems directory for it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Ruby on Rails: Capistrano 3 deployment error

From Dev

Capistrano 3 deployment for Rails 4 binstubs conflict?

From Dev

Rails 4 / Capistrano 3 Deployment Stopped Working (no errors)

From Dev

Rails 4 / Capistrano 3 Deployment Stopped Working (no errors)

From Dev

/usr/bin/env ruby no such file or directory: Using capistrano 3, capistrano/rbenv, capistrano/bundler and capistrano/rails (using rails 4)

From Dev

Rails 4 Capistrano deployment cannot find activesupport

From Dev

Rails 4 + Capistrano 3 - Deploy to Production Server from Local Repo

From Dev

Rails 4 API deployment example to Amazon EC2 using Capistrano 3, Nginx, Puma, GitHub, and RVM?

From Dev

Resque Capistrano Deployment in Rails

From Dev

Capistrano and Rails deployment, unable to access bitbucket repo from ubuntu server

From Dev

Rails 4 doesn't detect application after capistrano deployment

From Dev

/usr/bin/env and Capistrano 3 failures in Rails Deployment

From Dev

/usr/bin/env and Capistrano 3 failures in Rails Deployment

From Dev

Rails 4, Capistrano 3 and Dotenv - How to deploy using server-side .env file

From Dev

Ruby on Rails migrate error after add these 3 gems in my gemfile

From Java

Purge or recreate a Ruby on Rails database

From Dev

Good OAuth gems for Ruby on Rails

From Dev

Ruby on Rails whenever + capistrano v3 integration

From Dev

Ruby on Rails whenever + capistrano v3 integration

From Dev

Capistrano 3 + AWS: Deployment Issues

From Dev

Capistrano 3 + AWS: Deployment Issues

From Dev

Airbrake integration with Capistrano 3 with Rails 4 getting LoadError: cannot load such file -- airbrake/capistrano3

From Dev

Airbrake integration with Capistrano 3 with Rails 4 getting LoadError: cannot load such file -- airbrake/capistrano3

From Dev

Rails & Capistrano 3 - staging server trying to user production database

From Dev

Capistrano deploy of Rails app failing and saying there are missing gems

From Dev

Capistrano 3, Rails 4, database configuration does not specify adapter

From Dev

run rails applicaton after capistrano deployment

From Dev

Rails application does not get restarted automatically after deployment through Capistrano 3.x

From Dev

Capistrano read from .env on deployment server

Related Related

  1. 1

    Ruby on Rails: Capistrano 3 deployment error

  2. 2

    Capistrano 3 deployment for Rails 4 binstubs conflict?

  3. 3

    Rails 4 / Capistrano 3 Deployment Stopped Working (no errors)

  4. 4

    Rails 4 / Capistrano 3 Deployment Stopped Working (no errors)

  5. 5

    /usr/bin/env ruby no such file or directory: Using capistrano 3, capistrano/rbenv, capistrano/bundler and capistrano/rails (using rails 4)

  6. 6

    Rails 4 Capistrano deployment cannot find activesupport

  7. 7

    Rails 4 + Capistrano 3 - Deploy to Production Server from Local Repo

  8. 8

    Rails 4 API deployment example to Amazon EC2 using Capistrano 3, Nginx, Puma, GitHub, and RVM?

  9. 9

    Resque Capistrano Deployment in Rails

  10. 10

    Capistrano and Rails deployment, unable to access bitbucket repo from ubuntu server

  11. 11

    Rails 4 doesn't detect application after capistrano deployment

  12. 12

    /usr/bin/env and Capistrano 3 failures in Rails Deployment

  13. 13

    /usr/bin/env and Capistrano 3 failures in Rails Deployment

  14. 14

    Rails 4, Capistrano 3 and Dotenv - How to deploy using server-side .env file

  15. 15

    Ruby on Rails migrate error after add these 3 gems in my gemfile

  16. 16

    Purge or recreate a Ruby on Rails database

  17. 17

    Good OAuth gems for Ruby on Rails

  18. 18

    Ruby on Rails whenever + capistrano v3 integration

  19. 19

    Ruby on Rails whenever + capistrano v3 integration

  20. 20

    Capistrano 3 + AWS: Deployment Issues

  21. 21

    Capistrano 3 + AWS: Deployment Issues

  22. 22

    Airbrake integration with Capistrano 3 with Rails 4 getting LoadError: cannot load such file -- airbrake/capistrano3

  23. 23

    Airbrake integration with Capistrano 3 with Rails 4 getting LoadError: cannot load such file -- airbrake/capistrano3

  24. 24

    Rails & Capistrano 3 - staging server trying to user production database

  25. 25

    Capistrano deploy of Rails app failing and saying there are missing gems

  26. 26

    Capistrano 3, Rails 4, database configuration does not specify adapter

  27. 27

    run rails applicaton after capistrano deployment

  28. 28

    Rails application does not get restarted automatically after deployment through Capistrano 3.x

  29. 29

    Capistrano read from .env on deployment server

HotTag

Archive