Capistrano non si riavvia
-
08-07-2019 - |
Domanda
Capistrano sta distribuendo cold, distribuendo aggiornamenti e caricando il link simbolico. Tuttavia non si riavvierà.
Ho notato che l'autorizzazione è negata nel file / script / process / reaper. Ho trovato un suggerimento che implica che il file necessita di autorizzazioni aggiornate. Qualcuno ha esperienza con questo?
Macintosh-5:barcoden fogonthedowns$ cap deploy:restart
* executing `deploy:restart'
* executing "/home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper"
servers: ["owens.fogonthedowns.com"]
Password:
[owens.fogonthedowns.com] executing command
** [out :: owens.fogonthedowns.com] sh: /home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper: Permission denied
command finished
failed: "sh -c \"/home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper\"" on owens.fogonthedowns.com
Macintosh-5:barcoden fogonthedowns$
Soluzione
Qual è il tuo ambiente di distribuzione? Con Passenger (Apache) ho qualcosa del tipo:
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end
Altri suggerimenti
Come risposta aggiornata, per Capistrano 3 in esecuzione su Passenger ecco quello che faccio attualmente:
task :restart do
on roles(:app), in: :sequence, wait: 5 do
# If your tmp folder does not exist yet, uncomment the
# line below to create it.
# execute :mkdir, "#{File.join(current_path,'tmp')}"
execute :touch, "#{File.join(current_path,'tmp','restart.txt')}"
end
end
Hanno i loro forum di supporto, forse dovresti provare lì. http://groups.google.co.uk/group/capistrano/
Rails 2.3 non viene più spedito con i vecchi script del mietitore. http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3