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

trying to fix permission for tmp directory #92

Closed
vpereira opened this issue Feb 5, 2013 · 2 comments
Closed

trying to fix permission for tmp directory #92

vpereira opened this issue Feb 5, 2013 · 2 comments

Comments

@vpereira
Copy link

vpereira commented Feb 5, 2013

Hi,

I'm deploying my app as root. Everything is working fine, there is just a problem: I must set the permissions at the #{app_path}/tmp to "nobody:nogroup".

I added a task like

namespace :deploy do
  desc "set permissions on tmp directory"
  task :fix_permissions => :environment do
    queue! %[ echo "---> fixing permission at #{app_path}/tmp"]
    queue! %[ chown nobody:nogroup -R "#{app_path}/tmp" ]
  end
end

if I add this task to the "deploy" block, it doesn't work *i think the link to current is set after the deploy, because of that it sets the permission in the old release. If i add it to the launch block, i get an error saying that the directory /var/foo/current/tmp (my app_path/tmp) doesn't exist. There is any solution other then switch the deploy user?

@mikong
Copy link
Member

mikong commented Jul 7, 2013

@vpereira, the tmp we're talking about here is a subdirectory of your app, and not the tmp that's created by Mina for building the app, right?

Where did you define app_path?

Is your environment task doing anything?

@d4be4st
Copy link
Member

d4be4st commented Jul 5, 2015

no more info closing

@d4be4st d4be4st closed this as completed Jul 5, 2015
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

3 participants