{"action":"created","issue":{"url":"https://api.github.com/repos/sshingler/capistrano-resque/issues/101","labels_url":"https://api.github.com/repos/sshingler/capistrano-resque/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/sshingler/capistrano-resque/issues/101/comments","events_url":"https://api.github.com/repos/sshingler/capistrano-resque/issues/101/events","html_url":"https://github.com/sshingler/capistrano-resque/issues/101","id":70870436,"number":101,"title":"incompatibility between capistrano-resque and capistrano-rbenv","user":{"login":"madnik","id":4954307,"avatar_url":"https://avatars.githubusercontent.com/u/4954307?v=3","gravatar_id":"","url":"https://api.github.com/users/madnik","html_url":"https://github.com/madnik","followers_url":"https://api.github.com/users/madnik/followers","following_url":"https://api.github.com/users/madnik/following{/other_user}","gists_url":"https://api.github.com/users/madnik/gists{/gist_id}","starred_url":"https://api.github.com/users/madnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madnik/subscriptions","organizations_url":"https://api.github.com/users/madnik/orgs","repos_url":"https://api.github.com/users/madnik/repos","events_url":"https://api.github.com/users/madnik/events{/privacy}","received_events_url":"https://api.github.com/users/madnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-25T07:38:28Z","updated_at":"2015-10-28T03:18:27Z","closed_at":null,"body":"I'm using capistrano 3.2.1 with capistrano-resque gem to restart rasque workers on deployment. Always getting this error.\r\n\r\n```\r\ncd /home/azureuser/apps/app_production/current && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.1 /usr/bin/env nohup RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.1 ~/.rbenv/bin/rbenv exec bundle exec rake RACK_ENV=production RAILS_ENV=production QUEUE=\"mailer\" PIDFILE=/home/azureuser/apps/app_production/shared/tmp/pids/resque_work_1.pid BACKGROUND=yes VERBOSE=1 INTERVAL=5 environment resque:work >> log/resque.log 2>> log/resque.log )\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing as azureuser@myapp.cloudapp.net: nohup exit status: 127\r\nnohup stdout: Nothing written\r\nnohup stderr: Nothing written\r\n/Library/Ruby/Gems/2.0.0/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:16:in `rescue in block (2 levels) in execute'\r\n/Library/Ruby/Gems/2.0.0/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'\r\nSSHKit::Command::Failed: nohup exit status: 127\r\n```\r\n\r\nIf I check my error log at ```apps/app_production/current/log/resque.log ``` it shows. \r\n\r\n```\r\nohup: failed to run command `RBENV_ROOT=/home/azureuser/.rbenv': No such file or directory\r\n```\r\n\r\nI brought the issue to stackoverflow and here is the thread. \r\n\r\nhttp://stackoverflow.com/questions/29705693/rails-deployment-with-capistrano-and-start-resque-workers"},"comment":{"url":"https://api.github.com/repos/sshingler/capistrano-resque/issues/comments/151709535","html_url":"https://github.com/sshingler/capistrano-resque/issues/101#issuecomment-151709535","issue_url":"https://api.github.com/repos/sshingler/capistrano-resque/issues/101","id":151709535,"user":{"login":"lucasgomide","id":5209129,"avatar_url":"https://avatars.githubusercontent.com/u/5209129?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasgomide","html_url":"https://github.com/lucasgomide","followers_url":"https://api.github.com/users/lucasgomide/followers","following_url":"https://api.github.com/users/lucasgomide/following{/other_user}","gists_url":"https://api.github.com/users/lucasgomide/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasgomide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasgomide/subscriptions","organizations_url":"https://api.github.com/users/lucasgomide/orgs","repos_url":"https://api.github.com/users/lucasgomide/repos","events_url":"https://api.github.com/users/lucasgomide/events{/privacy}","received_events_url":"https://api.github.com/users/lucasgomide/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T03:18:27Z","updated_at":"2015-10-28T03:18:27Z","body":"You can create a new release with this changes?"}}