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

后端 未结 4 1184
有刺的猬
有刺的猬 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:22

    Capistrano doesn't load .bashrc since it's not interactive shell. As far as I remember though it does load .bash_profile though so you will probably have better luck using that.

提交回复
热议问题