Chris,
My question is why are doing the command `RBENV_ROOT=~/.rbenv
RBENV_VERSION=2.1.2 /usr/bin/env passenger -v`?
Where is that coming from?
I am using passenger I simply touch the restart.txt file, here's my task:
namespace :deploy do
desc 'Restart application'
task :restart_passenger do
on roles(:app), in: :sequence, wait: 2 do
# Restart Phusion Passenger
execute :touch, current_path.join('tmp/restart.txt')
end
end
after :publishing, :restart_passenger
end
On Wed, Jun 24, 2015 at 5:01 PM, Chris McCann <[email protected]> wrote:
> A Rails app that's been reliably deployed to a staging server for several
> months started having an issue today. Using capistrano 3.4.0,
> capistrano-passenger 0.0.4, and capistrano-rbenv 2.0.3.
>
> Here's the relevant part of the capistrano trace:
>
> ** Invoke deploy:restart (first_time)
>
> ** Execute deploy:restart
>
> ** Invoke passenger:restart (first_time)
>
> ** Execute passenger:restart
>
> DEBUG [4d1452c8] Running /usr/bin/env passenger -v as deploy@server
>
> DEBUG [4d1452c8] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2
> /usr/bin/env passenger -v )
>
> DEBUG [4d1452c8] /usr/bin/env: passenger
>
> DEBUG [4d1452c8] : No such file or directory
>
> cap aborted!
>
> SSHKit::Runner::ExecuteError: Exception while executing as deploy@server:
> passenger exit status: 127
>
> passenger stdout: Nothing written
>
> passenger stderr: /usr/bin/env: passenger: No such file or directory
>
>
> If I ssh into the server as the deploy user and execute:
>
>
> RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 /usr/bin/env passenger -v
>
>
> I get this:
>
>
> Phusion Passenger version 4.0.53
>
>
> "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
>
>
> This github issue is new and mentions the same problem:
> https://github.com/capistrano/passenger/issues/26
>
>
> Anyone else seen this?
>
>
> Cheers,
>
>
> Chris
>
> --
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
> ---
> You received this message because you are subscribed to the Google Groups
> "SD Ruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.