LoginSignup
5
5

More than 5 years have passed since last update.

capistrano (2.x) で環境変数を設定する / 確認する

Last updated at Posted at 2014-03-27

2.x系の話です。

設定するには

default_env を使う。

set :default_environment, {
  'RAILS_ENV'  => 'target_environment',
  'RAILS_ROOT' => '/path/to/rails/root'
}

確認するには

printenvinvoke する。

cap invoke COMMAND=printenv

see also

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