ruby - Running task before deploy:symlink:shared capistrano 3 -
With Capistranos (v 3.2.1) I am an absolute nozzle, so please forgive me, mistake, useless. I am deploying a PHP app and want to set up a composer before deployment: Simlink: Release work (only when rollback is not running)
I have a problem reaching the newly created release directory I'm currently in the CD (and also run some other items) to be able to run in the CD and run the composer;
Namespace: Delegate the namespace: Simulink 'Run composer' Functions: Runcomper performs on roles: "CD '# {current_release}' & amp; Composer" Execute "cd" # {Current_release} '& amp; amp; amp; amp; ln -s /sites/shared/index.php index.php "End end: Release, runcomposer ending
< P> {Current_release} variable is not present at this point (which is strange as the directory where the GIT bridge is run / sure / release / directory (Uchi Timestamp) but 'undefined local variable or method' current_release "' Can I set a new release directory like this before pointing to the' current 'symlink? Thank you very much.
Use
# The capfile requires 'catastrano / composer'
and by default the two tasks are employed. Before 'Deploy: Back', 'Compose: Install', before 'Deploy: Updated', 'Composer: Install' before
P> Delete one of the default tasks Rock :: Task ['Deploy: Back'] < / P>
Comments
Post a Comment