Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set environment variables in Capistrano 3?

In Capistrano 2, you could do something like this:

set :default_environment, {
  'PATH' => '$PATH:/opt/rubies/ruby-2.1.1/bin'
}

Is there an equivalent in cap 3?

like image 762
Robin Clowers Avatar asked Jun 02 '14 00:06

Robin Clowers


1 Answers

use:

set :default_env, {
  'PATH' => 'PATH=$PATH:/opt/rubies/ruby-2.1.1/bin'
}

as of at least capistrano 3.1

like image 159
Mike H-R Avatar answered Sep 25 '22 00:09

Mike H-R