1
1

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.

vmc rails-consoleを使うまで

Last updated at Posted at 2012-04-06

vmc rails-consoleを使うとクラウド側にあるrailsアプリのconsoleが使える。

vmc rails-consoleを使うためにはcaldecottが必要だが現在のgemでインストールされるcaldecott(0.0.4)だと、addressableをアンインストールしないとうまく動かない。
しかし、rake assets:precompileにはaddressableが必要でありハマる。

解決策としてはgithubにあるバージョンのcaldecottを使うこと。
例えば下記のようなGemfileを用意する

Gemfile
source :gemcutter
gem 'vmc',:git => "git://github.com/cloudfoundry/vmc.git"
gem 'caldecott',:git => "git://github.com/cloudfoundry/caldecott.git"

どこかのpathにインストールした後

$ bundle exec vmc rails-console app_name

コンソールが立ち上がり本番データをいじることができる。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?