LoginSignup
2
3

More than 5 years have passed since last update.

capistranoでデプロイ先がrvmの場合

Posted at

下記のcapistranoでmigrateするとrakeがないというエラーが発生してしまいました。

$ cap deploy:migrate

デプロイ先のサーバのrubyがrvmで動いており、その場合下記の記述がcapistranoの設定ファイルに必要でした。

$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"                  # Load RVM's capistrano plugin.
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3