How do I change the temporary directory that Capistrano uses?

后端 未结 3 917
礼貌的吻别
礼貌的吻别 2021-02-13 17:46

How would I change the temporary dir that Capistrano uses?

Example: Instead of /tmp, I want to use /home/user/tmp

My current VPS has

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-13 17:58

    For the ones who are still using Capistrano 2, tmp_dir does not exist. However you can use copy_dir instead:

    set :copy_dir, '/home/user/tmp'
    

    Link to the source code: https://github.com/capistrano/capistrano/blob/legacy-v2/lib/capistrano/recipes/deploy/strategy/copy.rb#L275

提交回复
热议问题