How can I instruct Capistrano 3 to load my shell environment variables set at remote host?

后端 未结 4 1141
有刺的猬
有刺的猬 2021-02-05 16:00

I want to instruct Capistrano to load environment variables that are defined on remote server. How can I do that?

It seems that when I export my environment variables in

4条回答
  •  独厮守ぢ
    2021-02-05 16:34

    In Capistrano 3 it's set :default_env, { ... }

    Like here:

    set :default_environment, { 
      'env_var1' => 'value1',
      'env_var2' => 'value2'
    }
    

    You can refer to this: Previous post..

提交回复
热议问题