diff --git a/app/Console/Commands/SyncCdn.php b/app/Console/Commands/SyncCdn.php index 3e7be78b4a..c447c5f726 100644 --- a/app/Console/Commands/SyncCdn.php +++ b/app/Console/Commands/SyncCdn.php @@ -312,6 +312,7 @@ class SyncCdn extends Command $install_script_location = "$parent_dir/scripts/install.sh"; $upgrade_script_location = "$parent_dir/scripts/upgrade.sh"; $upgrade_postgres_script_location = "$parent_dir/scripts/upgrade-postgres.sh"; + $patch_script_location = "$parent_dir/scripts/patch.sh"; $production_env_location = "$parent_dir/.env.production"; $service_template_location = "$parent_dir/templates/$service_template"; $versions_location = "$parent_dir/$versions"; @@ -346,6 +347,7 @@ class SyncCdn extends Command $install_script_location => 'json/coolify/install.sh', $upgrade_script_location => 'json/coolify/upgrade.sh', $upgrade_postgres_script_location => 'json/coolify/upgrade-postgres.sh', + $patch_script_location => 'json/coolify/patch.sh', $service_template_location => 'json/coolify/service-templates-latest.json', ]; } diff --git a/tests/Feature/SyncCdnTest.php b/tests/Feature/SyncCdnTest.php index 00bed238c7..52e0ea8945 100644 --- a/tests/Feature/SyncCdnTest.php +++ b/tests/Feature/SyncCdnTest.php @@ -97,6 +97,7 @@ SH); 'install.sh', 'upgrade.sh', 'upgrade-postgres.sh', + ...($environment === 'production' ? ['patch.sh'] : []), 'service-templates-latest.json', ]; $allTargets = array_map(fn (string $file) => "$targetDirectory/$file", $allBasenames); @@ -179,6 +180,7 @@ it('purges the CDN files from the Cloudflare cache', function (string $environme 'install.sh', 'upgrade.sh', 'upgrade-postgres.sh', + ...($environment === 'production' ? ['patch.sh'] : []), 'service-templates-latest.json', ]))->all()); })->with([