-
Notifications
You must be signed in to change notification settings - Fork 492
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
launch block don't works #170
Comments
+1 |
@hugomarisco try it: https://github.com/tomafro/recap. I never liked capistrano, but recap is really nice and works very well. |
+1 Same problem here |
I have to run I left here my deploy.rb
Thanks! |
@hernanvicente I will try it. UPDATE: Sorry, but I already tried and did not work well. Thanks |
+1 same issue |
I have something like this: task :restart => :environment do
pidfile = "#{deploy_to}/current/tmp/pids/unicorn.pid"
queue "if [ -f #{pidfile} ]; then kill -s USR2 `cat #{pidfile}`;fi"
end Invoking it from the launch block works just fine. |
Hi this task works for me: ...
deploy do
queue %[ruby -e "\\$stderr.write \\\"This is stdout output\n\\\""]
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
invoke :'bundle:install'
invoke :'rails:db_migrate'
to :launch do
invoke :'passenger:restart'
end
end
end
desc "Restarts the passenger server."
task :restart do
invoke :'passenger:restart'
end
namespace :passenger do
task :restart do
queue %{
echo "-----> Restarting passenger"
#{echo_cmd %[mkdir -p tmp]}
#{echo_cmd %[touch tmp/restart.txt]}
}
end
end from https://github.com/nadarei/mina/blob/master/test_env/config/deploy.rb |
This is fixed, we just added
before touching the restart.txt file. |
Hi,
I using mina for a good time from now, but still can not make it work for complete. The :launch block don't works, in order to restart my app after deploy. I am using something like this:
Thanks
The text was updated successfully, but these errors were encountered: