hostname('185.237.67.190') ->user('p546128') ->forwardAgent() ->multiplexing() ->set('deploy_path', '/home/www/p546128/html/{{application}}') ->set('bin/php', '/usr/local/bin/php') ->set('http_user', 'p546128') ->set('writable_mode', 'chmod') ->set('bin/composer', '/usr/local/bin/composer') ; task('build', function () { runLocally('npm i && npm run build'); }); task('upload:epevents', function () { upload( __DIR__ . '/public/typo3conf/ext/ep_events/Resources/Public/', '{{release_path}}/public/typo3conf/ext/ep_events/Resources/Public' ); }); task('upload:eptheme', function () { upload( __DIR__ . '/public/typo3conf/ext/ep_theme/Resources/Public/', '{{release_path}}/public/typo3conf/ext/ep_theme/Resources/Public' ); }); task('assets', [ 'build', 'upload:epevents', 'upload:eptheme', ]); task('caches:flush', function () { run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms cache:flush'); }); task('languages:update', function () { run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms language:update'); }); task('database:update', function () { run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms database:updateschema'); }); before('deploy:symlink', 'assets'); before('deploy:symlink', 'database:update'); before('deploy:symlink', 'languages:update'); before('cleanup', 'caches:flush'); after('deploy:failed', 'deploy:unlock');