What task is called after deploying the cover: update_code failed?

I have a problem with capistrano in that when update_code or symlink fails, I need to change permissions for some directories in the release path (or develop a way to use sudo rollback).

I tried before "deploy: rollback", task and before "deploy: rollback: code", but none of them seem to run update_code. Is this internal to the update_code task?

I assume another option is to make update_code -> rm -rf [releases] run as sudo.

+4
source share
1 answer

This image should help you, this is the order of the tasks performed during deployment:

enter image description here

+7
source

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


All Articles