Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pm4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ concurrency:
jobs:
run:
name: Run PM4-workflow
uses: processmaker/.github/.github/workflows/deploy-pm4.yml@main
uses: processmaker/.github/.github/workflows/deploy-pm4.yml@enable-octane-cicd
secrets: inherit
12 changes: 11 additions & 1 deletion config/octane.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Laravel\Octane\Listeners\ReportException;
use Laravel\Octane\Listeners\StopWorkerIfNecessary;
use Laravel\Octane\Octane;
use ProcessMaker\Models\AnonymousUser;

$multitenancyEnabled = filter_var(env('MULTITENANCY', false), FILTER_VALIDATE_BOOL);

return [

Expand Down Expand Up @@ -132,7 +135,11 @@

'warm' => [
...Octane::defaultServicesToWarm(),
ProcessMaker\Models\AnonymousUser::class,
// AnonymousUser is tenant-scoped; warming it at worker boot queries the
// default connection before any tenant is resolved (breaks multitenancy).
...($multitenancyEnabled ? [] : [
AnonymousUser::class,
]),
ProcessMaker\ImportExport\Extension::class,
ProcessMaker\ImportExport\SignalHelper::class,
ProcessMaker\Managers\MenuManager::class,
Expand All @@ -156,6 +163,9 @@
ProcessMaker\Managers\LoginManager::class,
ProcessMaker\Managers\ModelerManager::class,
Lavary\Menu\Menu::class,
...($multitenancyEnabled ? [
AnonymousUser::class,
] : []),
],

/*
Expand Down
Loading