1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rvmが1.11.3からCapistranoを分離して面倒だったのでバージョン下げた

Posted at

いつも通りデプロイしようとしたらなんかエラった。

% bundle exec cap production deploy
/Users/hash/.rvm/lib/rvm/capistrano.rb:5:in `<top (required)>': RVM - Capistrano integration was extracted to a separate gem, install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, note also the 'set :rvm_type, :user' is now the default (instead of :system). (RuntimeError)

[14560]hash% rvm --version
rvm 1.11.6 () by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/]
1.6.25

rvmを最新にしたところ、rvmからCapistranoを使う機能は別gemに切り出された模様。

利用中rvm gemsetにrvm-capistranoを入れればいいらしい。

ちがうちがう。Capistrano自体がbundle管理下だからGemfileに入れないと。

…というのも面倒くさいのでrvmでversionを指定してやろう。推奨されるrvmのinstallはcurl | basl -s stableというものだがinstall shell scriptの中身を見てみるとversion指定ができそうだったので

% curl -L get.rvm.io > install.sh
% bash install.sh --version latest-1.10

これで1.10.系列の最新をインストールできる。
curlの-Lオプションはリダイレクトを追いかける、らしい。
あとはreload…

% rvm reload
RVM reloaded!
% rvm --version
rvm 1.10.3 by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/]

バージョン番号は下でも"upgrade"と見なされて上書きされる。よしよし

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?