Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
RVM support for Capistrano v3:
If you use this integration with capistrano-rails, please ensure that you have capistrano-bundler >= 1.1.0
.
If you want solution with RVM/rubies installer included, give a try to rvm1-capistrano3.
Add this line to your application's Gemfile:
# Gemfile
gem 'capistrano', '~> 3.0'
gem 'capistrano-rvm'
And then execute:
$ bundle install
Require in Capfile to use the default task:
# Capfile
require 'capistrano/rvm'
And you should be good to go!
Everything should work for a basic RVM setup out of the box.
If you need some special settings, set those in the stage file for your server:
# deploy.rb or stage file (staging.rb, production.rb or else)
set :rvm_type, :user # Defaults to: :auto
set :rvm_ruby_version, '2.0.0-p247' # Defaults to: 'default'
set :rvm_custom_path, '~/.myveryownrvm' # only needed if not detected
:rvm_type
Valid options are:
:auto
(default): just tries to find the correct path.
~/.rvm
wins over /usr/local/rvm
:system
: defines the RVM path to /usr/local/rvm
:user
: defines the RVM path to ~/.rvm
:rvm_ruby_version
By default the Ruby and gemset is used which is returned by rvm current
on
the target host.
You can omit the ruby patch level from :rvm_ruby_version
if you want, and
capistrano will choose the most recent patch level for that version of ruby:
set :rvm_ruby_version, '2.0.0'
If you are using an rvm gemset, just specify it after your ruby_version:
set :rvm_ruby_version, '2.0.0-p247@mygemset'
or
set :rvm_ruby_version, '2.0.0@mygemset'
:rvm_custom_path
If you have a custom RVM setup with a different path then expected, you have to define a custom RVM path to tell capistrano where it is.
:rvm_roles
If you want to restrict RVM usage to a subset of roles, you may set :rvm_roles
:
set :rvm_roles, [:app, :web]
Capistrano can't use RVM to install rubies or create gemsets, so on the servers you are deploying to, you will have to manually use RVM to install the proper ruby and create the gemset.
This gem adds a new task rvm:hook
before deploy
task.
It sets the rvm ... do ...
for capistrano when it wants to run
rake
, gem
, bundle
, or ruby
.
If you want to check your configuration you can use the rvm:check
task to
get information about the RVM version and ruby which would be used for
deployment.
$ cap production rvm:check
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that capistrano-rvm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.