I have a connection that is actually represented by multiple servers.
I've added to the .rocketeer/events.php file the following event handlers:
<?php
use Rocketeer\Facades\Rocketeer;
Rocketeer::listenTo('deploy.before-symlink', function ($task) {
$task->runForCurrentRelease('do something before symlink');
});
Rocketeer::listenTo('deploy.after', function ($task) {
$task->runForCurrentRelease('do something after deploy');
});
Rocketeer::after('rollback', function ($task) {
$task->runForCurrentRelease('do something after rollback');
});
I expect that my events will be fired for each multiserver connection but they are fired only for the first server. What's wrong?
Hello!
I have a connection that is actually represented by multiple servers.
I've added to the
.rocketeer/events.php
file the following event handlers:I expect that my events will be fired for each multiserver connection but they are fired only for the first server. What's wrong?
Cheers!