mirror of
https://github.com/deployphp/deployer.git
synced 2025-04-20 21:36:19 +02:00
Pimcore recipe fixes (#3212)
* Share Pimcore database configuration * writeable var/cache/dev
This commit is contained in:
parent
b6fd811edb
commit
b92b1c6dd3
@ -13,7 +13,7 @@
|
||||
## Tasks
|
||||
|
||||
### pimcore:rebuild-classes
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/pimcore.php#L13)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/pimcore.php#L15)
|
||||
|
||||
Rebuilds Pimcore Classes.
|
||||
|
||||
@ -21,15 +21,23 @@ Rebuilds Pimcore Classes.
|
||||
|
||||
|
||||
### pimcore:custom-layouts-rebuild
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/pimcore.php#L18)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/pimcore.php#L20)
|
||||
|
||||
Creates Custom Layouts.
|
||||
|
||||
|
||||
|
||||
|
||||
### pimcore:cache_clear
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/pimcore.php#L25)
|
||||
|
||||
Removes cache.
|
||||
|
||||
|
||||
|
||||
|
||||
### pimcore:deploy
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/pimcore.php#L22)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/pimcore.php#L29)
|
||||
|
||||
|
||||
|
||||
@ -38,5 +46,6 @@ Creates Custom Layouts.
|
||||
|
||||
This task is group task which contains next tasks:
|
||||
* [pimcore:rebuild-classes](/docs/recipe/pimcore.md#pimcorerebuild-classes)
|
||||
* [pimcore:custom-layouts-rebuild](/docs/recipe/pimcore.md#pimcorecustom-layouts-rebuild)
|
||||
|
||||
|
||||
|
@ -7,7 +7,9 @@ add('recipes', ['pimcore']);
|
||||
|
||||
add('shared_dirs', ['public/var', 'var/email', 'var/recyclebin', 'var/versions']);
|
||||
|
||||
add('writable_dirs', ['public/var']);
|
||||
add('shared_files', ['config/local/database.yaml']);
|
||||
|
||||
add('writable_dirs', ['public/var', 'var/cache/dev']);
|
||||
|
||||
desc('Rebuilds Pimcore Classes');
|
||||
task('pimcore:rebuild-classes', function () {
|
||||
@ -19,9 +21,15 @@ task('pimcore:custom-layouts-rebuild', function () {
|
||||
run('{{bin/console}} pimcore:deployment:custom-layouts-rebuild --create-custom-layouts --delete-custom-layouts --no-interaction');
|
||||
});
|
||||
|
||||
desc('Removes cache');
|
||||
task('pimcore:cache_clear', function () {
|
||||
run('rm -rf {{release_or_current_path}}/var/cache/dev/*');
|
||||
});
|
||||
|
||||
task('pimcore:deploy', [
|
||||
'pimcore:rebuild-classes',
|
||||
'pimcore:custom-layouts-rebuild'
|
||||
'pimcore:custom-layouts-rebuild',
|
||||
'pimcore:cache_clear'
|
||||
]);
|
||||
|
||||
after('deploy:vendors', 'pimcore:deploy');
|
||||
|
Loading…
x
Reference in New Issue
Block a user