mirror of
https://github.com/deployphp/deployer.git
synced 2025-03-14 18:29:41 +01:00
Magento2: add var/page_cache as writable_dirs (#3202)
* var/page_cache as writable_dirs It will fix following Zend exception after successful deployment: Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/path/to/www/releases/7/var/page_cache" is not writable in /path/to/www/releases/7/vendor/magento/zendframework1/library/Zend/Cache.php:209 This exception does not occur on every environment, it depends on PHP pool user/group (default www-data or owner of project directory). * docgen
This commit is contained in:
parent
f51f0e3c03
commit
6981405647
@ -138,13 +138,14 @@ Overrides [writable_dirs](/docs/recipe/deploy/writable.md#writable_dirs) from `r
|
||||
'var',
|
||||
'pub/static',
|
||||
'pub/media',
|
||||
'generated'
|
||||
'generated',
|
||||
'var/page_cache'
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
### clear_paths
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L64)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L65)
|
||||
|
||||
Overrides [clear_paths](/docs/recipe/deploy/clear_paths.md#clear_paths) from `recipe/deploy/clear_paths.php`.
|
||||
|
||||
@ -163,21 +164,21 @@ Overrides [clear_paths](/docs/recipe/deploy/clear_paths.md#clear_paths) from `re
|
||||
|
||||
|
||||
### magento_version
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L73)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L74)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### maintenance_mode_status_active
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L80)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L81)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### enable_zerodowntime
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L87)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L88)
|
||||
|
||||
Deploy without setting maintenance mode if possible
|
||||
|
||||
@ -190,7 +191,7 @@ true
|
||||
## Tasks
|
||||
|
||||
### magento:compile
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L91)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L92)
|
||||
|
||||
Compiles magento di.
|
||||
|
||||
@ -198,7 +199,7 @@ Tasks
|
||||
|
||||
|
||||
### magento:deploy:assets
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L98)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L99)
|
||||
|
||||
Deploys assets.
|
||||
|
||||
@ -206,7 +207,7 @@ Deploys assets.
|
||||
|
||||
|
||||
### magento:sync:content_version
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L111)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L112)
|
||||
|
||||
Syncs content version.
|
||||
|
||||
@ -214,7 +215,7 @@ Syncs content version.
|
||||
|
||||
|
||||
### magento:maintenance:enable
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L121)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L122)
|
||||
|
||||
Enables maintenance mode.
|
||||
|
||||
@ -222,7 +223,7 @@ Enables maintenance mode.
|
||||
|
||||
|
||||
### magento:maintenance:disable
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L126)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L127)
|
||||
|
||||
Disables maintenance mode.
|
||||
|
||||
@ -230,7 +231,7 @@ Disables maintenance mode.
|
||||
|
||||
|
||||
### magento:config:import
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L131)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L132)
|
||||
|
||||
Config Import.
|
||||
|
||||
@ -238,7 +239,7 @@ Config Import.
|
||||
|
||||
|
||||
### magento:upgrade:db
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L166)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L167)
|
||||
|
||||
Upgrades magento database.
|
||||
|
||||
@ -246,7 +247,7 @@ Upgrades magento database.
|
||||
|
||||
|
||||
### magento:cache:flush
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L193)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L194)
|
||||
|
||||
Flushes Magento Cache.
|
||||
|
||||
@ -254,7 +255,7 @@ Flushes Magento Cache.
|
||||
|
||||
|
||||
### deploy:magento
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L198)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L199)
|
||||
|
||||
Magento2 deployment operations.
|
||||
|
||||
@ -269,7 +270,7 @@ This task is group task which contains next tasks:
|
||||
|
||||
|
||||
### magento:build
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L206)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L207)
|
||||
|
||||
Magento2 build operations.
|
||||
|
||||
@ -282,7 +283,7 @@ This task is group task which contains next tasks:
|
||||
|
||||
|
||||
### deploy
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L212)
|
||||
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento2.php#L213)
|
||||
|
||||
Deploys your project.
|
||||
|
||||
|
@ -59,7 +59,8 @@ set('writable_dirs', [
|
||||
'var',
|
||||
'pub/static',
|
||||
'pub/media',
|
||||
'generated'
|
||||
'generated',
|
||||
'var/page_cache'
|
||||
]);
|
||||
set('clear_paths', [
|
||||
'generated/*',
|
||||
|
Loading…
x
Reference in New Issue
Block a user