1 | <?php |
||
2 | namespace Deployer; |
||
3 | |||
4 | require_once __DIR__ . '/common.php'; |
||
5 | |||
6 | /** |
||
7 | * DocumentRoot / WebRoot for the TYPO3 installation |
||
8 | */ |
||
9 | set('typo3_webroot', 'Web'); |
||
10 | |||
11 | /** |
||
12 | * Main TYPO3 task |
||
13 | */ |
||
14 | task('deploy', [ |
||
15 | 'deploy:info', |
||
16 | 'deploy:setup', |
||
17 | 'deploy:lock', |
||
18 | 'deploy:release', |
||
19 | 'deploy:update_code', |
||
20 | 'deploy:shared', |
||
21 | 'deploy:vendors', |
||
22 | 'deploy:writable', |
||
23 | 'deploy:symlink', |
||
24 | 'deploy:unlock', |
||
25 | 'deploy:cleanup', |
||
26 | ])->desc('Deploy your project'); |
||
27 | after('deploy', 'success'); |
||
28 | |||
29 | /** |
||
30 | * Shared directories |
||
31 | */ |
||
32 | set('shared_dirs', [ |
||
33 | '{{typo3_webroot}}/fileadmin', |
||
34 | '{{typo3_webroot}}/typo3temp', |
||
35 | '{{typo3_webroot}}/uploads' |
||
36 | ]); |
||
37 | |||
38 | /** |
||
39 | * Shared files |
||
40 | */ |
||
41 | set('shared_files', [ |
||
42 | '{{typo3_webroot}}/.htaccess' |
||
43 | ]); |
||
44 | |||
45 | /** |
||
46 | * Writeable directories |
||
47 | */ |
||
48 | set('writable_dirs', [ |
||
49 | '{{typo3_webroot}}/fileadmin', |
||
50 | '{{typo3_webroot}}/typo3temp', |
||
51 | '{{typo3_webroot}}/typo3conf', |
||
52 | '{{typo3_webroot}}/uploads' |
||
53 | ]); |
||
54 |