[ '.ddev', '.claude', '.DS_Store', '.git', '.github', '.idea', '.nvmrc', 'node_modules', 'public/fileadmin', 'public/typo3temp', 'public/uploads', 'var', '.editorconfig', '.gitignore', '.htaccess_prod', 'deploy.php', 'package.json', 'package-lock.json', 'postcss.config.js', 'tailwind.config.js', 'webpack.config.js', ], 'exclude-file' => false, 'include' => [], 'include-file' => false, 'filter' => [], 'filter-file' => false, 'filter-perdir' => false, 'flags' => 'rz', 'options' => ['delete', 'links', 'chmod=D755,F664'], 'timeout' => 300, ]; host('production') ->setHostname('185.237.67.190') ->setRemoteUser('p546128') ->setForwardAgent(true) ->setSshMultiplexing(true) ->setDeployPath('/home/www/p546128/html/{{application}}') ->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet') ->set('bin/php', '/usr/local/bin/php') ->set('http_user', 'p546128') ->set('writable_mode', 'chmod') ->set('bin/composer', '/usr/local/bin/composer') ->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader') ->set('rsync_src', __DIR__) ->set('rsync', $rsyncOptions) ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://www.ep-reisen.de') ; host('hetzner') ->setHostname('dedi10193.your-server.de') ->setRemoteUser('eptypo3') ->setForwardAgent(true) ->setSshMultiplexing(true) ->setDeployPath('/usr/home/eptypo3/public_html/{{application}}') ->set('bin/php', '/usr/bin/php74') ->set('http_user', 'eptypo3') ->set('writable_mode', 'chmod') ->set('bin/composer', '/usr/bin/composer') ->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader') ->set('rsync_src', __DIR__) ->set('rsync', $rsyncOptions) ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://test.ep-reisen.de') ; host('staging') ->setHostname('185.237.67.190') ->setRemoteUser('p546128') ->setForwardAgent(true) ->setSshMultiplexing(true) ->setDeployPath('/home/www/p546128/html/{{application}}-staging') ->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet') ->set('bin/php', '/usr/local/bin/php') ->set('http_user', 'p546128') ->set('writable_mode', 'chmod') ->set('bin/composer', '/usr/local/bin/composer') ->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader') ->set('rsync_src', __DIR__) ->set('rsync', $rsyncOptions) ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://staging.ep-reisen.de --web-basic-auth=ep:reisen') ->add('shared_files', [ '{{typo3_webroot}}/.htpasswd', ]) ; task('deploy', [ 'deploy:info', 'deploy:setup', 'deploy:lock', 'deploy:release', 'deploy:assets:build', 'rsync', 'deploy:shared', 'deploy:writable', 'typo3:database:migrate', 'typo3:language:update', 'deploy:publish', 'cachetool:clear:opcache', 'typo3:cache:flush', // 'deploy:buspronet:symlink', ]); task('deploy:buspronet:symlink', function () { run('ln -s {{buspronet_path}} {{release_or_current_path}}/public/buchung'); }); task ('deploy:assets:build', function () { runLocally('ddev exec npm ci'); runLocally('ddev exec npm rebuild node-sass'); runLocally('ddev exec npm run build'); }); task('typo3:database:migrate', function () { run('{{bin/php}} {{release_or_current_path}}/vendor/bin/typo3cms database:updateschema'); }); task('typo3:language:update', function () { run('{{bin/php}} {{release_or_current_path}}/vendor/bin/typo3cms language:update'); }); task('typo3:cache:flush', function () { run('{{bin/php}} {{release_or_current_path}}/vendor/bin/typo3cms cache:flush'); }); after('deploy:failed', 'deploy:unlock');