Ne ich übertrage den Vendor nicht und mache bei ondeploy dann Composer Install, hier meine mage.yml
Code:
magephp:
log_dir: ./.mage_logs
exclude:
- ._*
- ./.idea
- ./.mage_logs
- ./app/config/parameters.yml
- ./app/Resources/contao/config/runonce.php
- ./assets
- ./files
- ./layout-src
- ./system
- ./tests
- ./var
- ./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
- ./.php_cs
- ./.php_cs.cache
- ./gulpfile.js
- ./npm-shrinkwrap.json
- ./package.json
- ./phpunit.*
- ./README.md
environments:
prod-cyon:
user: ##
host_path: /home/##/public_html/##
releases: 3
hosts:
- ##.net
composer:
path: 'php72 /home/###/composer.phar'
symfony: { env: 'prod', console: 'php72 ./vendor/bin/contao-console' }
tar_create_path: gtar
pre-deploy:
- exec: { cmd: 'cd ./layout-src && ./node_modules/.bin/gulp generate', desc: 'Running Gulp' }
on-deploy:
- 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/files', to: 'files' }
- fs/link: { from: '../../../shared/logs', to: 'var/logs' }
#- fs/move: { from: 'app/config/env/config_prod.yml', to: 'app/config/config_env.yml' }
- composer/self-update
- composer/install: { timeout: 600 }
- symfony/cache-clear: { flags: '--no-warmup' }
- symfony/cache-warmup
- symfony/assets-install
- Terminal42\MageTools\Task\Maintenance\LockTask
- fs/move: { from: 'web/htaccess-production', to: 'web/.htaccess' }
post-release:
#- Terminal42\MageTools\Task\Symfony\AcceleratorCacheClearTask: { flags: '--opcode' }
- Terminal42\MageTools\Task\Maintenance\UnlockTask
- deploy/release/cleanup
- exec: { cmd: 'if pgrep lsphp; then pkill lsphp; fi', desc: 'kill opcache on the cyon server' }
Lesezeichen