-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.mage.yml
68 lines (67 loc) · 2.41 KB
/
.mage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
magephp:
log_dir: ./.mage_logs
composer: { path: 'php71 /home/contaoro/public_html/composer.phar' }
symfony: { console: 'php71 ./vendor/bin/contao-console' }
# Deploy using gnu tar!
exclude:
- ._*
- .DS_Store
- ./.idea
- ./.mage_logs
- ./app/config/parameters.yml
- ./app/Resources/contao/config/runonce*
- ./assets
- ./files
- ./layout
- ./node_modules
- ./system
- ./tests
- ./var
- ./vendor
- ./web/assets
- ./web/bundles
- ./web/files
- ./web/share
- ./web/system
- ./web/.htaccess
- ./web/app.php
- ./web/app_dev.php
- ./web/install.php
- ./.babelrc
- ./.eslintrc.json
- ./.gitignore
- ./.mage.yml
- ./gulpfile.js
- ./package.json
- ./package-lock.json
- ./phpunit.*
- ./README.md
- ./composer.json~
environments:
production:
user: contaoro
#branch: master
host_path: /home/contaoro/public_html/contao.camp
releases: 3
hosts:
- contao.rocks
symfony: { env: 'prod' }
tar_create_path: gtar
pre-deploy:
- exec: { cmd: './node_modules/.bin/gulp', desc: 'Running Gulp' }
on-deploy:
- composer/self-update
- exec: { cmd: 'mkdir assets && mkdir system && mkdir var', desc: 'Creating initial directories' }
- fs/link: { from: '../../../../shared/config/parameters.yml', to: 'app/config/parameters.yml' }
- fs/link: { from: '../../../shared/config', to: 'system/config' }
- fs/link: { from: '../../../shared/images', to: 'assets/images' }
- fs/link: { from: '../../shared/files', to: 'files' }
#- fs/link: { from: '../../shared/templates', to: 'templates' }
- fs/link: { from: '../../../shared/logs', to: 'var/logs' }
- fs/link: { from: '../../../shared/share', to: 'web/share' }
- fs/move: { from: 'web/.htaccess.production', to: 'web/.htaccess' }
- composer/install: { timeout: 600 }
on-release:
- exec: { cmd: 'pkill lsphp', desc: 'Purging OpCode Cache' }
post-release:
- deploy/release/cleanup