Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"to :launch" creates restart.txt in the wrong directory #175

Closed
jmuheim opened this issue Mar 27, 2014 · 7 comments
Closed

"to :launch" creates restart.txt in the wrong directory #175

jmuheim opened this issue Mar 27, 2014 · 7 comments

Comments

@jmuheim
Copy link

jmuheim commented Mar 27, 2014

to :launch do
  queue "touch #{deploy_to}/tmp/restart.txt"
end

This creates a file in my-rails-app/tmp/restart.txt, but passenger searches it here: my-rails-app/current/tmp/restart.txt.

Is this a problem on my side or should it be fixed in your gem?

@jmuheim
Copy link
Author

jmuheim commented Mar 28, 2014

I solved the problem for my case by talking directly to the daemon:

    to :launch do
      # queue "touch #{deploy_to}/tmp/restart.txt"
      queue "svc -h ~/service/nginx"
    end

Still, I'd be interested in an answer here.

@syamilmj
Copy link

syamilmj commented Apr 3, 2014

This seems to fix it

to :launch do
  queue "touch #{deploy_to}/current/tmp/restart.txt"
end

@gordonbisnor
Copy link

to :launch do
  queue "touch #{deploy_to}/current/tmp/restart.txt"
end

is giving me this error:

touch: cannot touch `/home/xxx/apps/xxx/current/tmp/restart.txt': No such file or directory!     ERROR: Deploy failed.

Manually SSHing in and running the command works fine.

@gordonbisnor
Copy link

This is working for me:

queue "mkdir #{deploy_to}/current/tmp; touch #{deploy_to}/tmp/restart.txt"

@davidhq
Copy link

davidhq commented Jul 14, 2014

I ran into this as well... and it's 4 months since this thread started. How come it's not fixed in the recipe?

@jmuheim
Copy link
Author

jmuheim commented Jul 14, 2014

I ran into this as well... and it's 4 months since this thread started. How come it's not fixed in the recipe?

This is a very good question.

@zigomir
Copy link
Contributor

zigomir commented Jul 14, 2014

Let's see :) #208

This was referenced Jul 28, 2014
@gabskoro gabskoro closed this as completed Oct 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants