Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8304793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:56:15+00:00 2026-06-08T17:56:15+00:00

I have deploy.rb file with this pice of code: after :deploy do run if

  • 0

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:
enter image description here

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.
enter image description here

Two questions:

  1. What is pids/log “dir”, if it isn’t file or dir or something else?
  2. How can I solve this trouble?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:56:16+00:00Added an answer on June 8, 2026 at 5:56 pm

    a couple of suggestions:

    man test shows

    -d file       True if file exists and is a directory.
    

    so you probably mean if [ ! -d xxx/tmp/pids ];

    for easier tryout, just run the shell command in a temp directory:

    if [ ! -d xxx/tmp/pids ]; then mkdir xxx/tmp/pids && chmod 0777 xxx/tmp/pids; fi
    

    mkdir fails if dirs further up the path don’t exists – use mkdir -p

    if [ ! -d xxx/tmp/pids ]; then mkdir -p xxx/tmp/pids && chmod 0777 xxx/tmp/pids; fi
    

    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 -l and rather copy the text output here than a screenshot showing mainly your background image…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this deploy.rb file: set :application, UDA set :domain, 10.0.0.59 set :deploy_to, /home/gitek/www/uda/
I have a file that I want to deploy when my web project (an
We have got an extjs 3.1.1 form with file upload field ( http://www.extjs.com/deploy/dev/examples/form/file-upload.html from
is it possible with ant deploy to jar file not to server? i have
I have to deploy a web app and the the log4j.properties file is created
On JBoss 5.0.1 I have configured the deploy/properties-service.xml to reference a properties file like
I have following code in my deploy.rb namespace :app do desc copies the configuration
I have this situation, I am using Yahoo Yui Compressor and my MSBuild file
How can i fix this error? I have my deploy dist with all jar
I have a C# web application that needs to deploy a file to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.