I have deploy.rb file with this pice of code:
after :deploy do
run "if [ -d #{rails_root}/tmp/pids ]; then mkdir #{rails_root}/tmp/pids && chmod 0777 #{rails_root}/tmp/pids; fi"
end
There are trouble, you can see it @ screenshot of terminal:

The same troube is with log dir, but it’s just cloned from git repo (via capistrano). When I clone project manualy – the log dir works well.

Two questions:
- What is pids/log “dir”, if it isn’t file or dir or something else?
- How can I solve this trouble?
a couple of suggestions:
man testshowsso you probably mean if [ ! -d xxx/tmp/pids ];
for easier tryout, just run the shell command in a temp directory:
mkdir fails if dirs further up the path don’t exists – use mkdir -p
that should do what you intended.
(the screenshots are quite hard to decipher. if you want to get more information on a file type, use
ls -land rather copy the text output here than a screenshot showing mainly your background image…)