[ '.claude', '.idea', '.vscode', '.DS_Store', '.ddev', '.git', '.github', '.jj', 'node_modules', '.editorconfig', '.env.dev.local', '.env.dev.local.php', '.env.test', '.env.test.local', '.gitignore', '.nvmrc', '.php-cs-fixer.cache', '.php-cs-fixer.dist.php', '.phpunit.result.cache', 'CLAUDE.md', 'deploy.php', 'package.json', 'package-lock.json', '*.http', 'postcss.config.js', 'phpunit.xml.dist', 'public/.htaccess', 'tailwind.config.js', 'webpack.config.js', 'rapidapi.paw', 'bin/.phpunit', 'temp/*', 'tests/', 'uploads/', 'var/', ], 'exclude-file' => false, 'include' => [], 'include-file' => false, 'filter' => [], 'filter-file' => false, 'filter-perdir' => false, 'flags' => 'rz', 'options' => ['delete', 'copy-links', 'chmod=D755,F664'], 'timeout' => 300, ]; host('prod') ->setHostname('dedi10193.your-server.de') ->setRemoteUser('myepteam') ->setForwardAgent(true) ->setSshMultiplexing(true) ->setDeployPath('/usr/home/myepteam/public_html/prod') ->set('bin/php', '/usr/bin/php') ->set('http_user', 'myepteam') ->set('rsync_src', __DIR__) ->set('rsync', $rsyncOptions) ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://team.ep-reisen.de') ; task('deploy', [ 'deploy:info', 'deploy:setup', 'deploy:lock', 'deploy:release', 'deploy:assets', 'rsync', 'deploy:shared', 'deploy:writable', 'deploy:cache:clear', 'database:migrate', 'cachetool:clear:opcache', 'deploy:publish', 'deploy:stop-workers', ]); task('deploy:stop-workers', function () { run('{{bin/console}} messenger:stop-workers'); }); task('deploy:assets', function () { runLocally('ddev exec npm ci'); runLocally('ddev exec npm run build'); }); after('deploy:failed', 'deploy:unlock');