如何更改Capistrano使用的临时目录? [英] How do I change the temporary directory that Capistrano uses?
本文介绍了如何更改Capistrano使用的临时目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将如何更改Capistrano使用的临时目录?
How would I change the temporary dir that Capistrano uses?
示例:我不是 / tmp
,而是想要使用 / home / user / tmp
Example: Instead of /tmp
, I want to use /home/user/tmp
我当前的VPS为 / tmp
挂载为 noexec
,这在尝试运行 cap生产部署
时给了我拒绝权限错误。
My current VPS has /tmp
mounted as noexec
, which gives me permission denied errors while trying to run cap production deploy
.
推荐答案
在Capistrano 3中,
In Capistrano 3,
set :tmp_dir, '/home/user/tmp'
这篇关于如何更改Capistrano使用的临时目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文