How do I change the temporary directory that Capis

2019-03-25 02:00发布

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 /tmp mounted as noexec, which gives me permission denied errors while trying to run cap production deploy.

标签: capistrano
2条回答
祖国的老花朵
2楼-- · 2019-03-25 02:47

Are you talking about the remote tmp directory? If yes, here an example::

set :copy_remote_dir, deploy_to

This will change the default tmp directory where the archive was copied on the remote server to the deployment directory instead.

查看更多
手持菜刀,她持情操
3楼-- · 2019-03-25 02:49

In Capistrano 3,

set :tmp_dir, '/home/user/tmp'
查看更多
登录 后发表回答