What is a process / header and why does it not work?

When deploying my Rails application through Capistrano, the last thing it tries to do is:

sudo -p 'sudo password: ' -u app /home/user/public_html/example.com/current/script/process/reaper

Then it throws this error:

failed: "sh -c \"sudo -p 'sudo password: ' -u app /home/user/public_html/example.com/current/script/process/reaper\"" on 123.456.789.012

The application is still deploying and starting normally ... but what does the / reaper process do and what can I do to get rid of the error?

+3
source share
2 answers

Before the Mongrel / Passenger era and before building on a rack, the only way to run a Rails application is to use CGI or FGCI. The script / reaper file was used to start / stop the Rails process.

Capistrano Rails-, waper script. .

, Rails Passenger (mod_rails), Capistrano + Passenger (mod_rails) Capistrano Passenger .

+4

2.3 config/deploy.rb

deploy.task :restart, :roles => :app do
  run "touch #{current_path}/tmp/restart.txt"
end

.

+3

Source: https://habr.com/ru/post/1722279/


All Articles