Open etki opened 7 years ago
Found it
// Rocketeer\Services\Connections\ConnectionsHandler
public function setConnection($connection, $server = 0)
{
if (!$this->isValidConnection($connection) || (($this->connection === $connection) && ($this->currentServer === $server))) {
return;
}
// Set the connection
$this->handle = null;
$this->connection = $connection;
$this->localStorage = $server;
$this->currentServer = $server;
// Update events
$this->tasks->registerConfiguredEvents();
}
// Rocketeer\ServicesTasksHandler
public function registerConfiguredEvents()
{
// Clean previously registered events
foreach ($this->registeredEvents as $event) {
$this->events->forget('rocketeer.'.$event);
}
I'm not familiar enough with internals to bring a fixing pull request
Hi. I've spent some time debugging today just to find that events are just somehow erased.
here is my events.php:
running
deploy --on hotfix
, enteringRocketeer\Abstracts\AbstractCommand::fireTasksQueue
:And when i forcibly set current server as local through debugger, everything is just okay