Initial commit

This commit is contained in:
Björn Fromme
2018-04-18 17:24:00 +02:00
commit da4db35be3
875 changed files with 80368 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
<?php
namespace Deployer;
require 'recipe/typo3.php';
set('typo3_webroot', 'web');
set('application', 'typo3-deployer');
set('repository', '[email protected]:dreipunktnull/ep-reisen-web');
set('git_tty', true);
set('ssh_type', 'native');
set('ssh_multiplexing', true);
set('allow_anonymous_stats', false);
add('shared_files', [
'{{typo3_webroot}}/typo3conf/LocalConfiguration.php'
]);
server('production', 'dreipunktnull.com')
->user('ssh-438277-ep-reisen')
->forwardAgent()
->set('deploy_path', '~/{{application}}')
->set('bin/php', '/usr/local/bin/php5-56STABLE-CLI')
;
task('build:epevents', function () {
runLocally('cd ' . __DIR__ . '/web/typo3conf/ext/ep_events && npm i && npm run build');
});
task('build:eptheme', function () {
runLocally('cd ' . __DIR__ . '/web/typo3conf/ext/ep_theme && npm i && npm run build');
});
task('upload:epevents', function () {
upload(
__DIR__ . '/web/typo3conf/ext/ep_events/Resources/Public/',
'{{release_path}}/web/typo3conf/ext/ep_events/Resources/Public'
);
});
task('upload:eptheme', function () {
upload(
__DIR__ . '/web/typo3conf/ext/ep_theme/Resources/Public/',
'{{release_path}}/web/typo3conf/ext/ep_theme/Resources/Public'
);
});
task('assets:epevents', [
'build:epevents',
'upload:epevents',
]);
task('assets:eptheme', [
'build:eptheme',
'upload:eptheme',
]);
task('assets', [
'assets:epevents',
'assets:eptheme',
]);
after('deploy:symlink', 'assets');
after('deploy:failed', 'deploy:unlock');