You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: