deployer/docs/recipe/magento.md

82 lines
1.7 KiB
Markdown
Raw Normal View History

2021-09-26 15:25:58 +02:00
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/magento.php -->
<!-- Then run bin/docgen -->
# magento
[Source](/recipe/magento.php)
* Requires
* [common](/docs/recipe/common.md)
## Configuration
### shared_dirs
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento.php#L13)
2021-10-18 18:29:14 +02:00
Overrides [shared_dirs](/docs/recipe/deploy/shared.md#shared_dirs) from `recipe/deploy/shared.php`.
2021-09-26 15:25:58 +02:00
Magento shared dirs
```php title="Default value"
['var', 'media']
```
### shared_files
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento.php#L16)
2021-10-18 18:29:14 +02:00
Overrides [shared_files](/docs/recipe/deploy/shared.md#shared_files) from `recipe/deploy/shared.php`.
2021-09-26 15:25:58 +02:00
Magento shared files
```php title="Default value"
['app/etc/local.xml']
```
### writable_dirs
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento.php#L19)
Overrides [writable_dirs](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`.
Magento writable dirs
```php title="Default value"
['var', 'media']
```
## Tasks
### deploy:cache:clear
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento.php#L25)
Clear cache.
Clear cache
### deploy:clear_version
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento.php#L32)
2021-09-26 15:43:51 +02:00
2021-09-26 15:25:58 +02:00
Remove files that can be used to compromise Magento
### deploy
[Source](https://github.com/deployphp/deployer/blob/master/recipe/magento.php#L46)
Deploy your project.
Main task
This task is group task which contains next tasks:
* [deploy:prepare](/docs/recipe/common.md#deployprepare)
* [deploy:cache:clear](/docs/recipe/magento.md#deploycacheclear)
* [deploy:publish](/docs/recipe/common.md#deploypublish)