Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the temporary directory that Capistrano uses?

Tags:

capistrano

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.

like image 546
pinoyskul Avatar asked Sep 16 '10 07:09

pinoyskul


People also ask

How do I create a directory under tmp?

To create new directory use "mkdir" command. For example, to create directory TMP in the current directory issue either "mkdir TMP" or "mkdir ./TMP". It's a good practice to organize files by creating directories and putting files inside of them instead of having all files in one directory.

Which command is used to create a temporary directory?

Use mktemp -d . It creates a temporary directory with a random name and makes sure that file doesn't already exist.

Is tmp a directory?

The /tmp directory is a temporary landing place for files. Users also have write access to this directory, which can be a bad thing, but there is a solution.

Which directory contains temporary files in Linux?

In Unix and Linux, the global temporary directories are /tmp and /var/tmp. Web browsers periodically write data to the tmp directory during page views and downloads. Typically, /var/tmp is for persistent files (as it may be preserved over reboots), and /tmp is for more temporary files.


1 Answers

In Capistrano 3,

set :tmp_dir, '/home/user/tmp'
like image 174
Waiting for Dev... Avatar answered Oct 03 '22 06:10

Waiting for Dev...