Skip to content

Commit

Permalink
Merge pull request #44 from ByteInternet/cron_configuration_applicati…
Browse files Browse the repository at this point in the history
…on_first

platformconfig/cron: Set APPLICATION_FIRST as server role
  • Loading branch information
tdgroot authored Oct 1, 2024
2 parents 0caa36f + 043bb69 commit 6eddfb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PlatformConfiguration/CronConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Hypernode\DeployConfiguration\Configurable\ServerRoleConfigurableTrait;
use Hypernode\DeployConfiguration\Configurable\StageConfigurableInterface;
use Hypernode\DeployConfiguration\Configurable\StageConfigurableTrait;
use Hypernode\DeployConfiguration\ServerRole;
use Hypernode\DeployConfiguration\TaskConfigurationInterface;

/**
Expand Down Expand Up @@ -43,6 +44,7 @@ class CronConfiguration implements
public function __construct(string $sourceFile = 'etc/cron')
{
$this->sourceFile = $sourceFile;
$this->setServerRoles([ServerRole::APPLICATION_FIRST]);
}

public function getSourceFile(): string
Expand Down

0 comments on commit 6eddfb9

Please sign in to comment.