<?php
/**
 * Example project deploy.php
 * 
 * This is what each TYPO3 project's build/deploy.php looks like
 * when using the shared recipe.
 */

namespace Deployer;

// Option 1: Require from git raw URL (works immediately, no composer)
require 'https://git.cloonar.com/Cloonar/ci-templates/raw/branch/main/deployer/typo3-recipe.php';

// Option 2: Via composer (after adding to require-dev)
// require __DIR__ . '/../vendor/cloonar/ci-templates/deployer/typo3-recipe.php';

// Import project-specific server config
import(__DIR__ . '/servers.yaml');

// Project-specific cachetool sockets
host('stage')
    ->set('cachetool', '/var/run/phpfpm/PROJECTNAME.cloonar.dev.sock');

host('production')
    ->set('cachetool', '/var/run/phpfpm/PROJECTNAME.TLD.sock');

// Optional: Override settings for this project
// set('shared_dirs', array_merge(get('shared_dirs'), ['public/uploads']));
// set('keep_releases', 10);
