-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.mage.yml
51 lines (51 loc) · 2.54 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
magephp:
log_dir: ./.mage/logs
composer:
path: composer
exclude:
- ./.[!.e]*
- ./public/p
- ./public/p2
- ./public/satis
- ./public/aliases.json
- ./public/packages.json
- ./stubs
- ./tests
- ./tools
- ./var
- ./LICENSE
- ./phpstan.neon
- ./phpunit.xml.dist
- ./README.md
environments:
production:
user: get-prod
from: ./* ./.env
host_path: ./site/mage/
releases: 3
hosts:
- t3o05.typo3server.ch
pre-deploy:
- exec: { cmd: "echo \"APP_ENV=prod\" >> .env.local", desc: "Create .env.local" }
- composer/install: { flags: '--no-dev --no-progress --optimize-autoloader' }
on-deploy:
- exec: { cmd: 'mkdir -p var', desc: 'Create var folder' }
- exec: { cmd: 'mkdir -p var/satis', desc: 'Create var/satis folder' }
- exec: { cmd: 'test -d ~/site/shared/public/satis || mkdir -p ~/site/shared/public/satis', desc: 'Create shared/public/satis folder' }
- fs/link: { from: "../../../shared/.env.local", to: ".env.local" }
- fs/link: { from: "../../../../shared/public/satis", to: "public/satis" }
- fs/link: { from: "satis/p", to: "public/p" }
- fs/link: { from: "satis/p2", to: "public/p2" }
- fs/link: { from: "satis/aliases.json", to: "public/aliases.json" }
- fs/link: { from: "satis/packages.json", to: "public/packages.json" }
- exec: { cmd: "sqlite3 ~/site/mage/current/var/gettr.db '.backup var/gettr.db'", desc: "Copy DB" }
- exec: { cmd: "php-restart", desc: "Restart PHP and reset OPcache" }
- exec: { cmd: "php ./bin/console doctrine:migrations:sync-metadata-storage --no-interaction", desc: "Synchronize DB Migrations" }
- exec: { cmd: "php ./bin/console doctrine:migrations:migrate --no-interaction", desc: "Apply DB Migrations" }
- exec: { cmd: "php ./bin/console cache:clear --env=prod", desc: "Clear Cache", timeout: 600 }
- exec: { cmd: "php ./bin/console cache:warmup --env=prod", desc: "Cache Warmup", timeout: 600 }
- exec: { cmd: "crontab cnf/crontab.cron", desc: "Install crontab" }
on-release:
- exec: { cmd: "php-restart", desc: "Restart PHP and reset OPcache again" }
post-release:
post-deploy: