rocketeer icon indicating copy to clipboard operation
rocketeer copied to clipboard

hooks are not executed as of 2.2.3

Open hauke725 opened this issue 8 years ago • 2 comments

When I run rocketeer update after updating rocketeer to 2.2.3 the post update hooks are not excecuted. The same happens for rocketeer deploy. After reverting to 2.2.0 it works fine. Here is my hooks.php:

<?php

use Redacted\Tasks;

return [

    // Tasks
    //
    // Here you can define in the `before` and `after` array, Tasks to execute
    // before or after the core Rocketeer Tasks. You can either put a simple command,
    // a closure which receives a $task object, or the name of a class extending
    // the Rocketeer\Abstracts\AbstractTask class
    //
    // In the `custom` array you can list custom Tasks classes to be added
    // to Rocketeer. Those will then be available in the command line
    // with all the other tasks
    //////////////////////////////////////////////////////////////////////

    // Tasks to execute before the core Rocketeer Tasks
    'before' => [
        'setup'   => [],
        'deploy'  => [],
        'cleanup' => [],
    ],

    // Tasks to execute after the core Rocketeer Tasks
    'after'  => [
        'setup'   => [],
        'update' => [
            Tasks\DoctrineProxies::class,
            Tasks\Migrate::class,
        ],
        'deploy'  => [
            Tasks\Migrate::class,
            Tasks\DockerUpgrade::class,
            Tasks\DoctrineProxies::class,
            Tasks\Translations::class,
        ],
        'cleanup' => [],
    ],

    // Custom Tasks to register with Rocketeer
    'custom' => [],

];

hauke725 avatar Aug 08 '16 12:08 hauke725

I got stalled on the same issue. How did you revert to 2.2.0?

vcanhoto avatar Sep 16 '16 16:09 vcanhoto

I changed the version requirement in the project's composer.json to 2.2.0

hauke725 avatar Sep 19 '16 17:09 hauke725