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

Fix undefined method 'as' on Capistrano::Puma and 'execute' should be wrapped in an 'on' block #230

Merged
merged 1 commit into from
May 17, 2017

Conversation

4xposed
Copy link
Contributor

@4xposed 4xposed commented May 17, 2017

This PR should fix the following issues:

  • When deploying as a different user than the one that must run puma

NoMethodError: undefined method `as' for #Capistrano::Puma:0x007fde85295840

which is reported here: #229

  • When using monit to monitor the puma process

Warning: execute' should be wrapped in an on' scope in /Users/daniel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/capistrano-3.8.0/lib/capistrano/dsl.rb:38.

task :example do
on roles(:app) do
execute 'whoami'
end
end

(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host *: Exception while executing on host *: undefined method `execute' for main:Object

NoMethodError: undefined method `execute' for main:Object

Tasks: TOP => puma:monit:monitor

@4xposed 4xposed mentioned this pull request May 17, 2017
@seuros seuros merged commit c431425 into seuros:master May 17, 2017
@seuros
Copy link
Owner

seuros commented May 17, 2017

Thank you. i will release a new version

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

Successfully merging this pull request may close these issues.

2 participants