Refactor recipes (#2224)

This commit is contained in:
Anton Medvedev 2020-10-25 16:00:05 +01:00 committed by GitHub
parent f6750584a6
commit ff110c987d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
60 changed files with 316 additions and 1131 deletions

View File

@ -20,33 +20,33 @@
## Config
### shared_dirs
[Source](/recipe/cakephp.php#L11)
[Source](/recipe/cakephp.php#L13)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
CakePHP 3 Project Template shared dirs
CakePHP 4 Project Template shared dirs
### shared_files
[Source](/recipe/cakephp.php#L17)
[Source](/recipe/cakephp.php#L19)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
CakePHP 3 Project Template shared files
CakePHP 4 Project Template shared files
## Tasks
### deploy:init
[Source](/recipe/cakephp.php#L24)
[Source](/recipe/cakephp.php#L27)
Create plugins' symlinks
### deploy:run_migrations
[Source](/recipe/cakephp.php#L31)
[Source](/recipe/cakephp.php#L34)
Run migrations
### deploy
[Source](/recipe/cakephp.php#L40)
[Source](/recipe/cakephp.php#L43)
Main task

View File

@ -1,60 +0,0 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/cakephp4.php -->
<!-- Then run bin/docgen -->
# cakephp4
[Source](/recipe/cakephp4.php)
* Require
* [`recipe/common.php`](/docs/recipe/common.md)
* Config
* [`shared_dirs`](#shared_dirs)
* [`shared_files`](#shared_files)
* Tasks
* [`deploy:init`](#deployinit)
* [`deploy:run_migrations`](#deployrun_migrations)
* [`deploy`](#deploy)
## Config
### shared_dirs
[Source](/recipe/cakephp4.php#L11)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
CakePHP 4 Project Template shared dirs
### shared_files
[Source](/recipe/cakephp4.php#L17)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
CakePHP 4 Project Template shared files
## Tasks
### deploy:init
[Source](/recipe/cakephp4.php#L25)
Create plugins' symlinks
### deploy:run_migrations
[Source](/recipe/cakephp4.php#L32)
Run migrations
### deploy
[Source](/recipe/cakephp4.php#L41)
Main task
This task is group task which contains next tasks:
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
* [`deploy:vendors`](/docs/recipe/deploy/vendors.md#deployvendors)
* [`deploy:init`](/docs/recipe/cakephp4.md#deployinit)
* [`deploy:run_migrations`](/docs/recipe/cakephp4.md#deployrun_migrations)
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

View File

@ -18,14 +18,14 @@
## Config
### shared_dirs
[Source](/recipe/codeigniter.php#L7)
[Source](/recipe/codeigniter.php#L9)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
CodeIgniter shared dirs
### writable_dirs
[Source](/recipe/codeigniter.php#L10)
[Source](/recipe/codeigniter.php#L12)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -34,7 +34,7 @@ CodeIgniter writable dirs
## Tasks
### deploy
[Source](/recipe/codeigniter.php#L15)
[Source](/recipe/codeigniter.php#L17)
Main task

View File

@ -49,7 +49,7 @@
## Config
### user
[Source](/recipe/common.php#L29)
[Source](/recipe/common.php#L31)
Name of current user who is running deploy.
It will be shown in `dep status` command as author.
@ -57,17 +57,17 @@ If not set will try automatically get git user name,
otherwise output of `whoami` command.
### keep_releases
[Source](/recipe/common.php#L46)
[Source](/recipe/common.php#L48)
Number of releases to preserve in releases folder.
### repository
[Source](/recipe/common.php#L49)
[Source](/recipe/common.php#L51)
Repository to deploy.
### shared_dirs
[Source](/recipe/common.php#L56)
[Source](/recipe/common.php#L58)
List of dirs what will be shared between releases.
Each release will have symlink to those dirs stored in {{deploy_path}}/shared dir.
@ -76,7 +76,7 @@ set('shared_dirs', ['storage']);
```
### shared_files
[Source](/recipe/common.php#L63)
[Source](/recipe/common.php#L65)
List of files what will be shared between releases.
Each release will have symlink to those files stored in {{deploy_path}}/shared dir.
@ -85,33 +85,33 @@ set('shared_files', ['.env']);
```
### copy_dirs
[Source](/recipe/common.php#L67)
[Source](/recipe/common.php#L69)
List of dirs to copy between releases.
For example you can copy `node_modules` to speedup npm install.
### clear_paths
[Source](/recipe/common.php#L70)
[Source](/recipe/common.php#L72)
List of paths to remove from [release_path](/docs/recipe/deploy/release.md#release_path).
### clear_use_sudo
[Source](/recipe/common.php#L73)
[Source](/recipe/common.php#L75)
Use sudo for deploy:clear_path task?
### use_relative_symlink
[Source](/recipe/common.php#L75)
[Source](/recipe/common.php#L77)
### use_atomic_symlink
[Source](/recipe/common.php#L78)
[Source](/recipe/common.php#L80)
### env
[Source](/recipe/common.php#L96)
[Source](/recipe/common.php#L98)
Remote environment variables.
```php
@ -127,7 +127,7 @@ run('echo $KEY', ['env' => ['KEY' => 'over']]
```
### dotenv
[Source](/recipe/common.php#L105)
[Source](/recipe/common.php#L107)
Path to `.env` file which will be used as environment variables for each command per `run()`.
@ -136,7 +136,7 @@ set('dotenv', '[current_path](/docs/recipe/common.md#current_path)/.env');
```
### current_path
[Source](/recipe/common.php#L113)
[Source](/recipe/common.php#L115)
Return current release path. Default to {{deploy_path}}/`current`.
```php
@ -144,7 +144,7 @@ set('current_path', '/var/public_html');
```
### sudo_askpass
[Source](/recipe/common.php#L133)
[Source](/recipe/common.php#L135)
Path to a file which will store temp script with sudo password.
Defaults to `.dep/sudo_pass`. This script is only temporary and will be deleted after
@ -153,7 +153,7 @@ sudo command executed.
## Tasks
### deploy:prepare
[Source](/recipe/common.php#L148)
[Source](/recipe/common.php#L150)
@ -168,7 +168,7 @@ This task is group task which contains next tasks:
### deploy:publish
[Source](/recipe/common.php#L158)
[Source](/recipe/common.php#L160)
@ -180,17 +180,17 @@ This task is group task which contains next tasks:
### deploy:success
[Source](/recipe/common.php#L168)
[Source](/recipe/common.php#L170)
Prints success message
### deploy:failed
[Source](/recipe/common.php#L178)
[Source](/recipe/common.php#L180)
Hook on deploy failure.
### logs
[Source](/recipe/common.php#L187)
[Source](/recipe/common.php#L189)
Follow latest application logs.

View File

@ -16,7 +16,7 @@
## Tasks
### deploy
[Source](/recipe/composer.php#L7)
[Source](/recipe/composer.php#L9)

View File

@ -22,26 +22,26 @@
## Config
### drupal_site
[Source](/recipe/drupal7.php#L12)
[Source](/recipe/drupal7.php#L14)
Set Drupal 7 site. Change if you use different site
### shared_dirs
[Source](/recipe/drupal7.php#L15)
[Source](/recipe/drupal7.php#L17)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Drupal 7 shared dirs
### shared_files
[Source](/recipe/drupal7.php#L20)
[Source](/recipe/drupal7.php#L22)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
Drupal 7 shared files
### writable_dirs
[Source](/recipe/drupal7.php#L25)
[Source](/recipe/drupal7.php#L27)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -50,7 +50,7 @@ Drupal 7 writable dirs
## Tasks
### deploy
[Source](/recipe/drupal7.php#L6)
[Source](/recipe/drupal7.php#L8)
@ -60,12 +60,12 @@ This task is group task which contains next tasks:
### drupal:settings
[Source](/recipe/drupal7.php#L31)
[Source](/recipe/drupal7.php#L33)
Create and upload Drupal 7 settings.php using values from secrets
### drupal:upload_files
[Source](/recipe/drupal7.php#L73)
[Source](/recipe/drupal7.php#L75)
Upload Drupal 7 files folder

View File

@ -20,26 +20,26 @@
## Config
### drupal_site
[Source](/recipe/drupal8.php#L12)
[Source](/recipe/drupal8.php#L14)
Set drupal site. Change if you use different site
### shared_dirs
[Source](/recipe/drupal8.php#L16)
[Source](/recipe/drupal8.php#L18)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Drupal 8 shared dirs
### shared_files
[Source](/recipe/drupal8.php#L21)
[Source](/recipe/drupal8.php#L23)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
Drupal 8 shared files
### writable_dirs
[Source](/recipe/drupal8.php#L27)
[Source](/recipe/drupal8.php#L29)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -48,7 +48,7 @@ Drupal 8 Writable dirs
## Tasks
### deploy
[Source](/recipe/drupal8.php#L6)
[Source](/recipe/drupal8.php#L8)

View File

@ -21,17 +21,17 @@
## Config
### flow_context
[Source](/recipe/flow_framework.php#L7)
[Source](/recipe/flow_framework.php#L9)
Flow-Framework application-context
### flow_command
[Source](/recipe/flow_framework.php#L10)
[Source](/recipe/flow_framework.php#L12)
Flow-Framework cli-command
### shared_dirs
[Source](/recipe/flow_framework.php#L13)
[Source](/recipe/flow_framework.php#L15)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
@ -40,17 +40,17 @@ Flow-Framework shared directories
## Tasks
### deploy:run_migrations
[Source](/recipe/flow_framework.php#L22)
[Source](/recipe/flow_framework.php#L24)
Apply database migrations
### deploy:publish_resources
[Source](/recipe/flow_framework.php#L29)
[Source](/recipe/flow_framework.php#L31)
Publish resources
### deploy
[Source](/recipe/flow_framework.php#L36)
[Source](/recipe/flow_framework.php#L38)
Main task

View File

@ -17,7 +17,7 @@
## Config
### shared_dirs
[Source](/recipe/fuelphp.php#L7)
[Source](/recipe/fuelphp.php#L9)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
@ -26,7 +26,7 @@ FuelPHP 1.x shared dirs
## Tasks
### deploy
[Source](/recipe/fuelphp.php#L14)
[Source](/recipe/fuelphp.php#L16)
Main task

View File

@ -19,21 +19,21 @@
## Config
### shared_files
[Source](/recipe/joomla.php#L6)
[Source](/recipe/joomla.php#L8)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
### shared_dirs
[Source](/recipe/joomla.php#L7)
[Source](/recipe/joomla.php#L9)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
### writable_dirs
[Source](/recipe/joomla.php#L8)
[Source](/recipe/joomla.php#L10)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -42,7 +42,7 @@
## Tasks
### deploy
[Source](/recipe/joomla.php#L10)
[Source](/recipe/joomla.php#L12)

View File

@ -48,170 +48,170 @@
## Config
### shared_dirs
[Source](/recipe/laravel.php#L6)
[Source](/recipe/laravel.php#L8)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
### shared_files
[Source](/recipe/laravel.php#L7)
[Source](/recipe/laravel.php#L9)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
### writable_dirs
[Source](/recipe/laravel.php#L8)
[Source](/recipe/laravel.php#L10)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
### log_files
[Source](/recipe/laravel.php#L19)
[Source](/recipe/laravel.php#L21)
### laravel_version
[Source](/recipe/laravel.php#L20)
[Source](/recipe/laravel.php#L22)
## Tasks
### artisan:up
[Source](/recipe/laravel.php#L79)
[Source](/recipe/laravel.php#L81)
### artisan:down
[Source](/recipe/laravel.php#L82)
[Source](/recipe/laravel.php#L84)
### artisan:migrate
[Source](/recipe/laravel.php#L85)
[Source](/recipe/laravel.php#L87)
### artisan:migrate:fresh
[Source](/recipe/laravel.php#L88)
[Source](/recipe/laravel.php#L90)
### artisan:migrate:rollback
[Source](/recipe/laravel.php#L91)
[Source](/recipe/laravel.php#L93)
### artisan:migrate:status
[Source](/recipe/laravel.php#L94)
[Source](/recipe/laravel.php#L96)
### artisan:db:seed
[Source](/recipe/laravel.php#L97)
[Source](/recipe/laravel.php#L99)
### artisan:cache:clear
[Source](/recipe/laravel.php#L100)
[Source](/recipe/laravel.php#L102)
### artisan:config:clear
[Source](/recipe/laravel.php#L103)
[Source](/recipe/laravel.php#L105)
### artisan:config:cache
[Source](/recipe/laravel.php#L106)
[Source](/recipe/laravel.php#L108)
### artisan:route:cache
[Source](/recipe/laravel.php#L109)
[Source](/recipe/laravel.php#L111)
### artisan:view:clear
[Source](/recipe/laravel.php#L112)
[Source](/recipe/laravel.php#L114)
### artisan:view:cache
[Source](/recipe/laravel.php#L115)
[Source](/recipe/laravel.php#L117)
### artisan:optimize
[Source](/recipe/laravel.php#L118)
[Source](/recipe/laravel.php#L120)
### artisan:optimize:clear
[Source](/recipe/laravel.php#L121)
[Source](/recipe/laravel.php#L123)
### artisan:queue:restart
[Source](/recipe/laravel.php#L124)
[Source](/recipe/laravel.php#L126)
### artisan:storage:link
[Source](/recipe/laravel.php#L127)
[Source](/recipe/laravel.php#L129)
### artisan:horizon:assets
[Source](/recipe/laravel.php#L130)
[Source](/recipe/laravel.php#L132)
### artisan:horizon:publish
[Source](/recipe/laravel.php#L133)
[Source](/recipe/laravel.php#L135)
### artisan:horizon:terminate
[Source](/recipe/laravel.php#L136)
[Source](/recipe/laravel.php#L138)
### artisan:telescope:clear
[Source](/recipe/laravel.php#L139)
[Source](/recipe/laravel.php#L141)
### artisan:telescope:prune
[Source](/recipe/laravel.php#L142)
[Source](/recipe/laravel.php#L144)
### artisan:telescope:publish
[Source](/recipe/laravel.php#L145)
[Source](/recipe/laravel.php#L147)
### artisan:nova:publish
[Source](/recipe/laravel.php#L148)
[Source](/recipe/laravel.php#L150)
### artisan:event:clear
[Source](/recipe/laravel.php#L151)
[Source](/recipe/laravel.php#L153)
### artisan:event:cache
[Source](/recipe/laravel.php#L154)
[Source](/recipe/laravel.php#L156)
### deploy:public_disk
[Source](/recipe/laravel.php#L165)
[Source](/recipe/laravel.php#L167)
Task deploy:public_disk support the public disk.
To run this task automatically, please add below line to your deploy.php file
@ -221,7 +221,7 @@ To run this task automatically, please add below line to your deploy.php file
[Laravel filesystem configuration](https://laravel.com/docs/5.2/filesystem#configuration)
### deploy
[Source](/recipe/laravel.php#L180)
[Source](/recipe/laravel.php#L182)
Main deploy task.

View File

@ -21,21 +21,21 @@
## Config
### shared_dirs
[Source](/recipe/magento.php#L11)
[Source](/recipe/magento.php#L13)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Magento shared dirs
### shared_files
[Source](/recipe/magento.php#L14)
[Source](/recipe/magento.php#L16)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
Magento shared files
### writable_dirs
[Source](/recipe/magento.php#L17)
[Source](/recipe/magento.php#L19)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -44,17 +44,17 @@ Magento writable dirs
## Tasks
### deploy:cache:clear
[Source](/recipe/magento.php#L22)
[Source](/recipe/magento.php#L24)
Clear cache
### deploy:clear_version
[Source](/recipe/magento.php#L29)
[Source](/recipe/magento.php#L31)
Remove files that can be used to compromise Magento
### deploy
[Source](/recipe/magento.php#L42)
[Source](/recipe/magento.php#L44)
Main task

View File

@ -28,35 +28,35 @@
## Config
### static_content_locales
[Source](/recipe/magento2.php#L11)
[Source](/recipe/magento2.php#L13)
By default setup:static-content:deploy uses `en_US`.
To change that, simply put set('static_content_locales', 'en_US de_DE');`
in you deployer script.
### shared_files
[Source](/recipe/magento2.php#L13)
[Source](/recipe/magento2.php#L15)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
### shared_dirs
[Source](/recipe/magento2.php#L17)
[Source](/recipe/magento2.php#L19)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
### writable_dirs
[Source](/recipe/magento2.php#L31)
[Source](/recipe/magento2.php#L33)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
### clear_paths
[Source](/recipe/magento2.php#L37)
[Source](/recipe/magento2.php#L39)
* Overrides [`clear_paths`](/docs/recipe/common.md#clear_paths) from `recipe/common.php`
@ -65,37 +65,37 @@ in you deployer script.
## Tasks
### magento:compile
[Source](/recipe/magento2.php#L48)
[Source](/recipe/magento2.php#L50)
Tasks
### magento:deploy:assets
[Source](/recipe/magento2.php#L54)
[Source](/recipe/magento2.php#L56)
### magento:maintenance:enable
[Source](/recipe/magento2.php#L59)
[Source](/recipe/magento2.php#L61)
### magento:maintenance:disable
[Source](/recipe/magento2.php#L64)
[Source](/recipe/magento2.php#L66)
### magento:upgrade:db
[Source](/recipe/magento2.php#L69)
[Source](/recipe/magento2.php#L71)
### magento:cache:flush
[Source](/recipe/magento2.php#L74)
[Source](/recipe/magento2.php#L76)
### deploy:magento
[Source](/recipe/magento2.php#L79)
[Source](/recipe/magento2.php#L81)
@ -108,7 +108,7 @@ This task is group task which contains next tasks:
### deploy
[Source](/recipe/magento2.php#L89)
[Source](/recipe/magento2.php#L91)

View File

@ -19,21 +19,21 @@
## Config
### shared_files
[Source](/recipe/prestashop.php#L6)
[Source](/recipe/prestashop.php#L9)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
### shared_dirs
[Source](/recipe/prestashop.php#L7)
[Source](/recipe/prestashop.php#L10)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
### writable_dirs
[Source](/recipe/prestashop.php#L19)
[Source](/recipe/prestashop.php#L22)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -42,7 +42,7 @@
## Tasks
### deploy
[Source](/recipe/prestashop.php#L34)
[Source](/recipe/prestashop.php#L37)

View File

@ -27,19 +27,19 @@
## Config
### php_version
[Source](/recipe/provision.php#L8)
[Source](/recipe/provision.php#L10)
### sudo_password
[Source](/recipe/provision.php#L9)
[Source](/recipe/provision.php#L11)
## Tasks
### provision
[Source](/recipe/provision.php#L14)
[Source](/recipe/provision.php#L16)
@ -56,57 +56,57 @@ This task is group task which contains next tasks:
### provision:check
[Source](/recipe/provision.php#L33)
[Source](/recipe/provision.php#L35)
### provision:upgrade
[Source](/recipe/provision.php#L54)
[Source](/recipe/provision.php#L56)
### provision:install
[Source](/recipe/provision.php#L60)
[Source](/recipe/provision.php#L62)
### provision:ssh
[Source](/recipe/provision.php#L83)
[Source](/recipe/provision.php#L85)
### provision:user:deployer
[Source](/recipe/provision.php#L97)
[Source](/recipe/provision.php#L99)
### provision:firewall
[Source](/recipe/provision.php#L132)
[Source](/recipe/provision.php#L134)
### provision:install:php
[Source](/recipe/provision.php#L140)
[Source](/recipe/provision.php#L142)
### provision:install:composer
[Source](/recipe/provision.php#L165)
[Source](/recipe/provision.php#L167)
### provision:config:php:sessions
[Source](/recipe/provision.php#L198)
[Source](/recipe/provision.php#L200)
### provision:nginx:dhparam
[Source](/recipe/provision.php#L204)
[Source](/recipe/provision.php#L206)
### provision:nginx
[Source](/recipe/provision.php#L215)
[Source](/recipe/provision.php#L217)

View File

@ -1,10 +1,10 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/shopware6.php -->
<!-- Instead edit recipe/shopware.php -->
<!-- Then run bin/docgen -->
# shopware6
# shopware
[Source](/recipe/shopware6.php)
[Source](/recipe/shopware.php)
@ -32,116 +32,116 @@
## Config
### repository
[Source](/recipe/shopware6.php#L4)
[Source](/recipe/shopware.php#L6)
### release_name
[Source](/recipe/shopware6.php#L6)
[Source](/recipe/shopware.php#L8)
### shared_files
[Source](/recipe/shopware6.php#L10)
[Source](/recipe/shopware.php#L12)
### shared_dirs
[Source](/recipe/shopware6.php#L13)
[Source](/recipe/shopware.php#L15)
### writable_dirs
[Source](/recipe/shopware6.php#L22)
[Source](/recipe/shopware.php#L24)
### static_folders
[Source](/recipe/shopware6.php#L31)
[Source](/recipe/shopware.php#L33)
## Tasks
### sw:update_code
[Source](/recipe/shopware6.php#L33)
[Source](/recipe/shopware.php#L35)
### sw:system:install
[Source](/recipe/shopware6.php#L36)
[Source](/recipe/shopware.php#L38)
### sw:build
[Source](/recipe/shopware6.php#L39)
[Source](/recipe/shopware.php#L41)
### sw:system:setup
[Source](/recipe/shopware6.php#L42)
[Source](/recipe/shopware.php#L44)
### sw:theme:compile
[Source](/recipe/shopware6.php#L45)
[Source](/recipe/shopware.php#L47)
### sw:cache:clear
[Source](/recipe/shopware6.php#L48)
[Source](/recipe/shopware.php#L50)
### sw:cache:warmup
[Source](/recipe/shopware6.php#L51)
[Source](/recipe/shopware.php#L53)
### sw:database:migrate
[Source](/recipe/shopware6.php#L55)
[Source](/recipe/shopware.php#L57)
### sw:plugin:refresh
[Source](/recipe/shopware6.php#L58)
[Source](/recipe/shopware.php#L60)
### sw:plugin:activate:all
[Source](/recipe/shopware6.php#L61)
[Source](/recipe/shopware.php#L63)
### sw:plugin:migrate:all
[Source](/recipe/shopware6.php#L94)
[Source](/recipe/shopware.php#L96)
### sw:deploy
[Source](/recipe/shopware6.php#L130)
[Source](/recipe/shopware.php#L132)
Grouped SW deploy tasks
This task is group task which contains next tasks:
* [`sw:build`](/docs/recipe/shopware6.md#swbuild)
* [`sw:plugin:activate:all`](/docs/recipe/shopware6.md#swpluginactivateall)
* [`sw:database:migrate`](/docs/recipe/shopware6.md#swdatabasemigrate)
* [`sw:plugin:migrate:all`](/docs/recipe/shopware6.md#swpluginmigrateall)
* [`sw:theme:compile`](/docs/recipe/shopware6.md#swthemecompile)
* [`sw:cache:clear`](/docs/recipe/shopware6.md#swcacheclear)
* [`sw:build`](/docs/recipe/shopware.md#swbuild)
* [`sw:plugin:activate:all`](/docs/recipe/shopware.md#swpluginactivateall)
* [`sw:database:migrate`](/docs/recipe/shopware.md#swdatabasemigrate)
* [`sw:plugin:migrate:all`](/docs/recipe/shopware.md#swpluginmigrateall)
* [`sw:theme:compile`](/docs/recipe/shopware.md#swthemecompile)
* [`sw:cache:clear`](/docs/recipe/shopware.md#swcacheclear)
### deploy
[Source](/recipe/shopware6.php#L142)
[Source](/recipe/shopware.php#L144)
Main task
This task is group task which contains next tasks:
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
* [`sw:deploy`](/docs/recipe/shopware6.md#swdeploy)
* [`sw:deploy`](/docs/recipe/shopware.md#swdeploy)
* [`deploy:clear_paths`](/docs/recipe/deploy/clear_paths.md#deployclear_paths)
* [`sw:cache:warmup`](/docs/recipe/shopware6.md#swcachewarmup)
* [`sw:cache:warmup`](/docs/recipe/shopware.md#swcachewarmup)
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

View File

@ -22,43 +22,43 @@
## Config
### shared_assets
[Source](/recipe/silverstripe.php#L10)
[Source](/recipe/silverstripe.php#L12)
### shared_dirs
[Source](/recipe/silverstripe.php#L19)
[Source](/recipe/silverstripe.php#L21)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Silverstripe shared dirs
### writable_dirs
[Source](/recipe/silverstripe.php#L24)
[Source](/recipe/silverstripe.php#L26)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
Silverstripe writable dirs
### silverstripe_cli_script
[Source](/recipe/silverstripe.php#L29)
[Source](/recipe/silverstripe.php#L31)
Silverstripe cli script
## Tasks
### silverstripe:build
[Source](/recipe/silverstripe.php#L44)
[Source](/recipe/silverstripe.php#L46)
Helper tasks
### silverstripe:buildflush
[Source](/recipe/silverstripe.php#L48)
[Source](/recipe/silverstripe.php#L50)
### deploy
[Source](/recipe/silverstripe.php#L55)
[Source](/recipe/silverstripe.php#L57)
Main task

View File

@ -9,7 +9,7 @@
* Require
* [`recipe/symfony3.php`](/docs/recipe/symfony3.md)
* [`recipe/symfony.php`](/docs/recipe/symfony.md)
* Tasks
* [`deploy:website:cache:clear`](#deploywebsitecacheclear) — Clear cache
* [`deploy:website:cache:warmup`](#deploywebsitecachewarmup) — Warm up cache
@ -17,12 +17,12 @@
## Tasks
### deploy:website:cache:clear
[Source](/recipe/sulu.php#L23)
[Source](/recipe/sulu.php#L26)
### deploy:website:cache:warmup
[Source](/recipe/sulu.php#L28)
[Source](/recipe/sulu.php#L31)

View File

@ -1,28 +0,0 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/sulu2.php -->
<!-- Then run bin/docgen -->
# sulu2
[Source](/recipe/sulu2.php)
* Require
* [`recipe/symfony4.php`](/docs/recipe/symfony4.md)
* Tasks
* [`deploy:website:cache:clear`](#deploywebsitecacheclear) — Clear cache
* [`deploy:website:cache:warmup`](#deploywebsitecachewarmup) — Warm up cache
## Tasks
### deploy:website:cache:clear
[Source](/recipe/sulu2.php#L23)
### deploy:website:cache:warmup
[Source](/recipe/sulu2.php#L28)

View File

@ -11,157 +11,80 @@
* Require
* [`recipe/common.php`](/docs/recipe/common.md)
* Config
* [`symfony_env`](#symfony_env)
* [`symfony_version`](#symfony_version)
* [`shared_dirs`](#shared_dirs)
* [`shared_files`](#shared_files)
* [`writable_dirs`](#writable_dirs)
* [`clear_paths`](#clear_paths)
* [`assets`](#assets)
* [`dump_assets`](#dump_assets)
* [`env`](#env)
* [`composer_options`](#composer_options)
* [`bin_dir`](#bin_dir)
* [`var_dir`](#var_dir)
* [`console_options`](#console_options)
* [`migrations_config`](#migrations_config)
* [`console_options`](#console_options)
* Tasks
* [`deploy:create_cache_dir`](#deploycreate_cache_dir)
* [`deploy:assets`](#deployassets)
* [`deploy:assets:install`](#deployassetsinstall)
* [`deploy:assetic:dump`](#deployasseticdump)
* [`deploy:cache:clear`](#deploycacheclear)
* [`deploy:cache:warmup`](#deploycachewarmup)
* [`database:migrate`](#databasemigrate)
* [`deploy`](#deploy)
* [`database:migrate`](#databasemigrate) — Migrate database
* [`deploy:cache:clear`](#deploycacheclear) — Clear cache
* [`deploy:cache:warmup`](#deploycachewarmup) — Warm up cache
* [`deploy`](#deploy) — Deploy project
## Config
### symfony_env
[Source](/recipe/symfony.php#L12)
### symfony_version
[Source](/recipe/symfony.php#L8)
Symfony build set
### shared_dirs
[Source](/recipe/symfony.php#L15)
[Source](/recipe/symfony.php#L14)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Symfony shared dirs
### shared_files
[Source](/recipe/symfony.php#L18)
[Source](/recipe/symfony.php#L19)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
Symfony shared files
### writable_dirs
[Source](/recipe/symfony.php#L21)
[Source](/recipe/symfony.php#L24)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
Symfony writable dirs
### clear_paths
[Source](/recipe/symfony.php#L24)
* Overrides [`clear_paths`](/docs/recipe/common.md#clear_paths) from `recipe/common.php`
Clear paths
### assets
[Source](/recipe/symfony.php#L27)
Assets
### dump_assets
[Source](/recipe/symfony.php#L30)
Requires non symfony-core package `kriswallsmith/assetic` to be installed
### env
[Source](/recipe/symfony.php#L33)
* Overrides [`env`](/docs/recipe/common.md#env) from `recipe/common.php`
Environment vars
### composer_options
[Source](/recipe/symfony.php#L39)
* Overrides [`composer_options`](/docs/recipe/deploy/vendors.md#composer_options) from `recipe/deploy/vendors.php`
### bin_dir
[Source](/recipe/symfony.php#L46)
Adding support for the Symfony3 directory structure
### var_dir
[Source](/recipe/symfony.php#L47)
### migrations_config
[Source](/recipe/symfony.php#L28)
### console_options
[Source](/recipe/symfony.php#L55)
[Source](/recipe/symfony.php#L32)
Symfony console opts
### migrations_config
[Source](/recipe/symfony.php#L61)
Migrations configuration file
## Tasks
### deploy:create_cache_dir
[Source](/recipe/symfony.php#L67)
### database:migrate
[Source](/recipe/symfony.php#L37)
Create cache dir
### deploy:assets
[Source](/recipe/symfony.php#L85)
Normalize asset timestamps
### deploy:assets:install
[Source](/recipe/symfony.php#L97)
Install assets from public dir of bundles
### deploy:assetic:dump
[Source](/recipe/symfony.php#L105)
Dump all assets to the filesystem
### deploy:cache:clear
[Source](/recipe/symfony.php#L114)
[Source](/recipe/symfony.php#L47)
Clear Cache
### deploy:cache:warmup
[Source](/recipe/symfony.php#L121)
[Source](/recipe/symfony.php#L52)
Warm up cache
### database:migrate
[Source](/recipe/symfony.php#L129)
Migrate database
### deploy
[Source](/recipe/symfony.php#L142)
[Source](/recipe/symfony.php#L57)
Main task
This task is group task which contains next tasks:
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
* [`deploy:clear_paths`](/docs/recipe/deploy/clear_paths.md#deployclear_paths)
* [`deploy:create_cache_dir`](/docs/recipe/symfony.md#deploycreate_cache_dir)
* [`deploy:assets`](/docs/recipe/symfony.md#deployassets)
* [`deploy:vendors`](/docs/recipe/deploy/vendors.md#deployvendors)
* [`deploy:assets:install`](/docs/recipe/symfony.md#deployassetsinstall)
* [`deploy:assetic:dump`](/docs/recipe/symfony.md#deployasseticdump)
* [`deploy:cache:clear`](/docs/recipe/symfony.md#deploycacheclear)
* [`deploy:cache:warmup`](/docs/recipe/symfony.md#deploycachewarmup)
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

View File

@ -1,48 +0,0 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/symfony3.php -->
<!-- Then run bin/docgen -->
# symfony3
[Source](/recipe/symfony3.php)
* Require
* [`recipe/symfony.php`](/docs/recipe/symfony.md)
* Config
* [`shared_dirs`](#shared_dirs)
* [`writable_dirs`](#writable_dirs)
* [`bin_dir`](#bin_dir)
* [`var_dir`](#var_dir)
## Config
### shared_dirs
[Source](/recipe/symfony3.php#L11)
* Overrides [`shared_dirs`](/docs/recipe/symfony.md#shared_dirs) from `recipe/symfony.php`
Symfony shared dirs
### writable_dirs
[Source](/recipe/symfony3.php#L14)
* Overrides [`writable_dirs`](/docs/recipe/symfony.md#writable_dirs) from `recipe/symfony.php`
Symfony writable dirs
### bin_dir
[Source](/recipe/symfony3.php#L17)
* Overrides [`bin_dir`](/docs/recipe/symfony.md#bin_dir) from `recipe/symfony.php`
Symfony executable and variable directories
### var_dir
[Source](/recipe/symfony3.php#L18)
* Overrides [`var_dir`](/docs/recipe/symfony.md#var_dir) from `recipe/symfony.php`

View File

@ -1,86 +0,0 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/symfony4.php -->
<!-- Then run bin/docgen -->
# symfony4
[Source](/recipe/symfony4.php)
* Require
* [`recipe/common.php`](/docs/recipe/common.md)
* Config
* [`shared_dirs`](#shared_dirs)
* [`shared_files`](#shared_files)
* [`writable_dirs`](#writable_dirs)
* [`migrations_config`](#migrations_config)
* [`console_options`](#console_options)
* Tasks
* [`database:migrate`](#databasemigrate) — Migrate database
* [`deploy:cache:clear`](#deploycacheclear) — Clear cache
* [`deploy:cache:warmup`](#deploycachewarmup) — Warm up cache
* [`deploy`](#deploy) — Deploy project
## Config
### shared_dirs
[Source](/recipe/symfony4.php#L6)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
### shared_files
[Source](/recipe/symfony4.php#L7)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
### writable_dirs
[Source](/recipe/symfony4.php#L8)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
### migrations_config
[Source](/recipe/symfony4.php#L9)
### console_options
[Source](/recipe/symfony4.php#L15)
## Tasks
### database:migrate
[Source](/recipe/symfony4.php#L20)
### deploy:cache:clear
[Source](/recipe/symfony4.php#L30)
### deploy:cache:warmup
[Source](/recipe/symfony4.php#L35)
### deploy
[Source](/recipe/symfony4.php#L40)
This task is group task which contains next tasks:
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
* [`deploy:vendors`](/docs/recipe/deploy/vendors.md#deployvendors)
* [`deploy:cache:clear`](/docs/recipe/symfony4.md#deploycacheclear)
* [`deploy:cache:warmup`](/docs/recipe/symfony4.md#deploycachewarmup)
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

View File

@ -1,86 +0,0 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/symfony5.php -->
<!-- Then run bin/docgen -->
# symfony5
[Source](/recipe/symfony5.php)
* Require
* [`recipe/common.php`](/docs/recipe/common.md)
* Config
* [`shared_dirs`](#shared_dirs)
* [`shared_files`](#shared_files)
* [`writable_dirs`](#writable_dirs)
* [`migrations_config`](#migrations_config)
* [`console_options`](#console_options)
* Tasks
* [`database:migrate`](#databasemigrate) — Migrate database
* [`deploy:cache:clear`](#deploycacheclear) — Clear cache
* [`deploy:cache:warmup`](#deploycachewarmup) — Warm up cache
* [`deploy`](#deploy) — Deploy project
## Config
### shared_dirs
[Source](/recipe/symfony5.php#L6)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
### shared_files
[Source](/recipe/symfony5.php#L7)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
### writable_dirs
[Source](/recipe/symfony5.php#L8)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
### migrations_config
[Source](/recipe/symfony5.php#L9)
### console_options
[Source](/recipe/symfony5.php#L15)
## Tasks
### database:migrate
[Source](/recipe/symfony5.php#L20)
### deploy:cache:clear
[Source](/recipe/symfony5.php#L30)
### deploy:cache:warmup
[Source](/recipe/symfony5.php#L35)
### deploy
[Source](/recipe/symfony5.php#L40)
This task is group task which contains next tasks:
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
* [`deploy:vendors`](/docs/recipe/deploy/vendors.md#deployvendors)
* [`deploy:cache:clear`](/docs/recipe/symfony5.md#deploycacheclear)
* [`deploy:cache:warmup`](/docs/recipe/symfony5.md#deploycachewarmup)
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

View File

@ -20,26 +20,26 @@
## Config
### typo3_webroot
[Source](/recipe/typo3.php#L9)
[Source](/recipe/typo3.php#L11)
DocumentRoot / WebRoot for the TYPO3 installation
### shared_dirs
[Source](/recipe/typo3.php#L24)
[Source](/recipe/typo3.php#L26)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Shared directories
### shared_files
[Source](/recipe/typo3.php#L33)
[Source](/recipe/typo3.php#L35)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
Shared files
### writable_dirs
[Source](/recipe/typo3.php#L40)
[Source](/recipe/typo3.php#L42)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -48,7 +48,7 @@ Writeable directories
## Tasks
### deploy
[Source](/recipe/typo3.php#L14)
[Source](/recipe/typo3.php#L16)
Main TYPO3 task

View File

@ -19,21 +19,21 @@
## Config
### shared_files
[Source](/recipe/wordpress.php#L6)
[Source](/recipe/wordpress.php#L8)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
### shared_dirs
[Source](/recipe/wordpress.php#L7)
[Source](/recipe/wordpress.php#L9)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
### writable_dirs
[Source](/recipe/wordpress.php#L8)
[Source](/recipe/wordpress.php#L10)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -42,7 +42,7 @@
## Tasks
### deploy
[Source](/recipe/wordpress.php#L10)
[Source](/recipe/wordpress.php#L12)

View File

@ -18,14 +18,14 @@
## Config
### shared_dirs
[Source](/recipe/yii.php#L7)
[Source](/recipe/yii.php#L9)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Yii shared dirs
### writable_dirs
[Source](/recipe/yii.php#L10)
[Source](/recipe/yii.php#L12)
* Overrides [`writable_dirs`](/docs/recipe/deploy/writable.md#writable_dirs) from `recipe/deploy/writable.php`
@ -34,7 +34,7 @@ Yii writable dirs
## Tasks
### deploy
[Source](/recipe/yii.php#L15)
[Source](/recipe/yii.php#L17)
Main task

View File

@ -1,60 +0,0 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/yii2-app-advanced.php -->
<!-- Then run bin/docgen -->
# yii2-app-advanced
[Source](/recipe/yii2-app-advanced.php)
* Require
* [`recipe/common.php`](/docs/recipe/common.md)
* Config
* [`shared_dirs`](#shared_dirs)
* [`shared_files`](#shared_files)
* Tasks
* [`deploy:init`](#deployinit)
* [`deploy:run_migrations`](#deployrun_migrations)
* [`deploy`](#deploy)
## Config
### shared_dirs
[Source](/recipe/yii2-app-advanced.php#L11)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Yii 2 Advanced Project Template shared dirs
### shared_files
[Source](/recipe/yii2-app-advanced.php#L18)
* Overrides [`shared_files`](/docs/recipe/common.md#shared_files) from `recipe/common.php`
Yii 2 Advanced Project Template shared files
## Tasks
### deploy:init
[Source](/recipe/yii2-app-advanced.php#L32)
Initialization
### deploy:run_migrations
[Source](/recipe/yii2-app-advanced.php#L39)
Run migrations
### deploy
[Source](/recipe/yii2-app-advanced.php#L46)
Main task
This task is group task which contains next tasks:
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
* [`deploy:vendors`](/docs/recipe/deploy/vendors.md#deployvendors)
* [`deploy:init`](/docs/recipe/yii2-app-advanced.md#deployinit)
* [`deploy:run_migrations`](/docs/recipe/yii2-app-advanced.md#deployrun_migrations)
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

View File

@ -1,45 +0,0 @@
<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit recipe/yii2-app-basic.php -->
<!-- Then run bin/docgen -->
# yii2-app-basic
[Source](/recipe/yii2-app-basic.php)
* Require
* [`recipe/common.php`](/docs/recipe/common.md)
* Config
* [`shared_dirs`](#shared_dirs)
* Tasks
* [`deploy:run_migrations`](#deployrun_migrations)
* [`deploy`](#deploy)
## Config
### shared_dirs
[Source](/recipe/yii2-app-basic.php#L11)
* Overrides [`shared_dirs`](/docs/recipe/common.md#shared_dirs) from `recipe/common.php`
Yii 2 Basic Project Template shared dirs
## Tasks
### deploy:run_migrations
[Source](/recipe/yii2-app-basic.php#L16)
Run migrations
### deploy
[Source](/recipe/yii2-app-basic.php#L23)
Main task
This task is group task which contains next tasks:
* [`deploy:prepare`](/docs/recipe/common.md#deployprepare)
* [`deploy:vendors`](/docs/recipe/deploy/vendors.md#deployvendors)
* [`deploy:run_migrations`](/docs/recipe/yii2-app-basic.md#deployrun_migrations)
* [`deploy:publish`](/docs/recipe/common.md#deploypublish)

View File

@ -16,7 +16,7 @@
## Tasks
### deploy
[Source](/recipe/zend_framework.php#L9)
[Source](/recipe/zend_framework.php#L11)
Main task

View File

@ -3,18 +3,21 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['cakephp']);
/**
* CakePHP 3 Project Template configuration
* CakePHP 4 Project Template configuration
*/
// CakePHP 3 Project Template shared dirs
// CakePHP 4 Project Template shared dirs
set('shared_dirs', [
'logs',
'tmp',
]);
// CakePHP 3 Project Template shared files
// CakePHP 4 Project Template shared files
set('shared_files', [
'config/.env',
'config/app.php',
]);
@ -30,8 +33,8 @@ task('deploy:init', function () {
*/
task('deploy:run_migrations', function () {
run('{{release_path}}/bin/cake migrations migrate');
run('{{release_path}}/bin/cake orm_cache clear');
run('{{release_path}}/bin/cake orm_cache build');
run('{{release_path}}/bin/cake schema_cache clear');
run('{{release_path}}/bin/cake schema_cachebuild');
})->desc('Run migrations');
/**

View File

@ -1,49 +0,0 @@
<?php
namespace Deployer;
require_once __DIR__ . '/common.php';
/**
* CakePHP 4 Project Template configuration
*/
// CakePHP 4 Project Template shared dirs
set('shared_dirs', [
'logs',
'tmp',
]);
// CakePHP 4 Project Template shared files
set('shared_files', [
'config/.env',
'config/app.php',
]);
/**
* Create plugins' symlinks
*/
task('deploy:init', function () {
run('{{release_path}}/bin/cake plugin assets symlink');
})->desc('Initialization');
/**
* Run migrations
*/
task('deploy:run_migrations', function () {
run('{{release_path}}/bin/cake migrations migrate');
run('{{release_path}}/bin/cake schema_cache clear');
run('{{release_path}}/bin/cake schema_cachebuild');
})->desc('Run migrations');
/**
* Main task
*/
task('deploy', [
'deploy:prepare',
'deploy:vendors',
'deploy:init',
'deploy:run_migrations',
'deploy:publish',
])->desc('Deploy your project');
after('deploy', 'success');

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['codeigniter']);
// CodeIgniter shared dirs
set('shared_dirs', ['application/cache', 'application/logs']);

View File

@ -22,6 +22,8 @@ use Deployer\Exception\RunException;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
add('recipes', ['common']);
// Name of current user who is running deploy.
// It will be shown in `dep status` command as author.
// If not set will try automatically get git user name,

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['composer']);
desc('Deploy your project');
task('deploy', [
'deploy:prepare',

View File

@ -11,7 +11,7 @@ task('deploy:lock', function () {
if ($locked) {
throw new GracefulShutdownException(
"Deploy locked.\n" .
sprintf("Execute \"deploy:unlock\" task to unlock.")
"Execute \"deploy:unlock\" task to unlock."
);
} else {
run("echo \"{{user}}\" > {{deploy_path}}/.dep/deploy.lock");

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['drupal7']);
task('deploy', [
'deploy:prepare',
'deploy:publish',

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['drupal8']);
task('deploy', [
'deploy:prepare',
'deploy:publish',

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['flow_framework']);
// Flow-Framework application-context
set('flow_context', 'Production');

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['fuelphp']);
// FuelPHP 1.x shared dirs
set('shared_dirs', [
'fuel/app/cache', 'fuel/app/logs',

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['joomla']);
set('shared_files', ['configuration.php']);
set('shared_dirs', ['images']);
set('writable_dirs', ['images']);

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['laravel']);
set('shared_dirs', ['storage']);
set('shared_files', ['.env']);
set('writable_dirs', [

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['magento']);
/**
* Magento Configuration
*/

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['magento2']);
// Configuration
// By default setup:static-content:deploy uses `en_US`.

View File

@ -1,34 +1,37 @@
<?php
namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['prestashop']);
set('shared_files', ['config/settings.inc.php', '.htaccess']);
set('shared_dirs', [
'img',
'log',
'download',
'upload',
'translations',
'mails',
'themes/default-bootstrap/lang',
'themes/default-bootstrap/mails',
'themes/default-bootstrap/pdf/lang',
'img',
'log',
'download',
'upload',
'translations',
'mails',
'themes/default-bootstrap/lang',
'themes/default-bootstrap/mails',
'themes/default-bootstrap/pdf/lang',
]
);
set('writable_dirs', [
'img',
'log',
'cache',
'download',
'upload',
'translations',
'mails',
'themes/default-bootstrap/lang',
'themes/default-bootstrap/mails',
'themes/default-bootstrap/pdf/lang',
'themes/default-bootstrap/cache',
]
'img',
'log',
'cache',
'download',
'upload',
'translations',
'mails',
'themes/default-bootstrap/lang',
'themes/default-bootstrap/mails',
'themes/default-bootstrap/pdf/lang',
'themes/default-bootstrap/cache',
]
);
task('deploy', [

View File

@ -5,6 +5,8 @@ namespace Deployer;
use Deployer\Exception\GracefulShutdownException;
use function Deployer\Support\starts_with;
add('recipes', ['provision']);
set('php_version', '7.4');
set('sudo_password', function () {
return askHiddenResponse('Type new password:');

View File

@ -1,6 +1,8 @@
<?php
namespace Deployer;
add('recipes', ['shopware']);
set('repository', 'git@github.com:shopware/production.git');
set('release_name', static function () {

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['silverstripe']);
/**
* Silverstripe configuration
*/

View File

@ -1,11 +1,14 @@
<?php
namespace Deployer;
require_once __DIR__ . '/symfony3.php';
require_once __DIR__ . '/symfony.php';
add('shared_dirs', ['var/indexes', 'var/sitemaps', 'var/uploads', 'web/uploads']);
add('recipes', ['sulu']);
add('writable_dirs', ['var/indexes', 'var/sitemaps', 'var/uploads', 'web/uploads']);
add('shared_dirs', ['var/indexes', 'var/sitemaps', 'var/uploads', 'public/uploads']);
add('writable_dirs', ['public/uploads']);
set('bin/websiteconsole', function () {
return parse('{{bin/php}} {{release_path}}/bin/websiteconsole --no-interaction');
@ -15,18 +18,18 @@ desc('Migrate PHPCR');
task(
'phpcr:migrate',
function () {
run('{{bin/php}} {{bin/console}} phpcr:migrations:migrate {{console_options}}');
run('{{bin/php}} {{bin/console}} phpcr:migrations:migrate');
}
);
desc('Clear cache');
task('deploy:website:cache:clear', function () {
run('{{bin/websiteconsole}} cache:clear {{console_options}} --no-warmup');
run('{{bin/websiteconsole}} cache:clear --no-warmup');
});
desc('Warm up cache');
task('deploy:website:cache:warmup', function () {
run('{{bin/websiteconsole}} cache:warmup {{console_options}}');
run('{{bin/websiteconsole}} cache:warmup');
});
after('deploy:cache:clear', 'deploy:website:cache:clear');

View File

@ -1,33 +0,0 @@
<?php
namespace Deployer;
require_once __DIR__ . '/symfony4.php';
add('shared_dirs', ['var/indexes', 'var/sitemaps', 'var/uploads', 'public/uploads']);
add('writable_dirs', ['public/uploads']);
set('bin/websiteconsole', function () {
return parse('{{bin/php}} {{release_path}}/bin/websiteconsole --no-interaction');
});
desc('Migrate PHPCR');
task(
'phpcr:migrate',
function () {
run('{{bin/php}} {{bin/console}} phpcr:migrations:migrate');
}
);
desc('Clear cache');
task('deploy:website:cache:clear', function () {
run('{{bin/websiteconsole}} cache:clear --no-warmup');
});
desc('Warm up cache');
task('deploy:website:cache:warmup', function () {
run('{{bin/websiteconsole}} cache:warmup');
});
after('deploy:cache:clear', 'deploy:website:cache:clear');
after('deploy:website:cache:clear', 'deploy:website:cache:warmup');

View File

@ -3,154 +3,63 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['symfony']);
/**
* Symfony Configuration
*/
// Symfony build set
set('symfony_env', 'prod');
// Symfony shared dirs
set('shared_dirs', ['app/logs']);
// Symfony shared files
set('shared_files', ['app/config/parameters.yml']);
// Symfony writable dirs
set('writable_dirs', ['app/cache', 'app/logs']);
// Clear paths
set('clear_paths', ['web/app_*.php', 'web/config.php']);
// Assets
set('assets', ['web/css', 'web/images', 'web/js']);
// Requires non symfony-core package `kriswallsmith/assetic` to be installed
set('dump_assets', false);
// Environment vars
set('env', function () {
return [
'SYMFONY_ENV' => get('symfony_env')
];
set('symfony_version', function () {
$result = run('{{bin/console}} --version');
preg_match_all('/(\d+\.?)+/', $result, $matches);
return $matches[0][0] ?? 5.0;
});
set('composer_options', function () {
$debug = get('symfony_env') === 'dev';
return sprintf('--verbose --prefer-dist --no-progress --no-interaction %s --optimize-autoloader', (!$debug ? '--no-dev' : ''));
});
set('shared_dirs', [
'var/log',
'var/sessions']
);
set('shared_files', [
'.env.local.php',
'.env.local'
]);
// Adding support for the Symfony3 directory structure
set('bin_dir', 'app');
set('var_dir', 'app');
set('writable_dirs', [
'var'
]);
// Symfony console bin
set('bin/console', function () {
return sprintf('{{release_path}}/%s/console', trim(get('bin_dir'), '/'));
});
// Symfony console opts
set('console_options', function () {
$options = '--no-interaction --env={{symfony_env}}';
return get('symfony_env') !== 'prod' ? $options : sprintf('%s --no-debug', $options);
});
// Migrations configuration file
set('migrations_config', '');
set('bin/console', '{{bin/php}} {{release_path}}/bin/console');
/**
* Create cache dir
*/
task('deploy:create_cache_dir', function () {
// Set cache dir
set('cache_dir', '{{release_path}}/' . trim(get('var_dir'), '/') . '/cache');
set('console_options', function () {
return '--no-interaction';
});
// Remove cache dir if it exist
run('if [ -d "{{cache_dir}}" ]; then rm -rf {{cache_dir}}; fi');
// Create cache dir
run('mkdir -p {{cache_dir}}');
// Set rights
run("chmod -R g+w {{cache_dir}}");
})->desc('Create cache dir');
/**
* Normalize asset timestamps
*/
task('deploy:assets', function () {
$assets = implode(' ', array_map(function ($asset) {
return "{{release_path}}/$asset";
}, get('assets')));
run(sprintf('find %s -exec touch -t %s {} \';\' &> /dev/null || true', $assets, date('YmdHi.s')));
})->desc('Normalize asset timestamps');
/**
* Install assets from public dir of bundles
*/
task('deploy:assets:install', function () {
run('{{bin/php}} {{bin/console}} assets:install {{console_options}} {{release_path}}/web');
})->desc('Install bundle assets');
/**
* Dump all assets to the filesystem
*/
task('deploy:assetic:dump', function () {
if (get('dump_assets')) {
run('{{bin/php}} {{bin/console}} assetic:dump {{console_options}}');
}
})->desc('Dump assets');
/**
* Clear Cache
*/
task('deploy:cache:clear', function () {
run('{{bin/php}} {{bin/console}} cache:clear {{console_options}} --no-warmup');
})->desc('Clear cache');
/**
* Warm up cache
*/
task('deploy:cache:warmup', function () {
run('{{bin/php}} {{bin/console}} cache:warmup {{console_options}}');
})->desc('Warm up cache');
/**
* Migrate database
*/
desc('Migrate database');
task('database:migrate', function () {
$options = '{{console_options}} --allow-no-migration';
$options = '--allow-no-migration';
if (get('migrations_config') !== '') {
$options = sprintf('%s --configuration={{release_path}}/{{migrations_config}}', $options);
$options = "$options --configuration={{release_path}}/{{migrations_config}}";
}
run(sprintf('{{bin/php}} {{bin/console}} doctrine:migrations:migrate %s', $options));
})->desc('Migrate database');
run("cd {{release_path}} && {{bin/console}} doctrine:migrations:migrate $options {{console_options}}");
});
desc('Clear cache');
task('deploy:cache:clear', function () {
run('{{bin/console}} cache:clear {{console_options}} --no-warmup');
});
/**
* Main task
*/
desc('Warm up cache');
task('deploy:cache:warmup', function () {
run('{{bin/console}} cache:warmup {{console_options}}');
});
desc('Deploy project');
task('deploy', [
'deploy:prepare',
'deploy:clear_paths',
'deploy:create_cache_dir',
'deploy:assets',
'deploy:vendors',
'deploy:assets:install',
'deploy:assetic:dump',
'deploy:cache:clear',
'deploy:cache:warmup',
'deploy:publish',
])->desc('Deploy your project');
]);
// Display success message on completion
after('deploy', 'success');

View File

@ -1,18 +0,0 @@
<?php
namespace Deployer;
require_once __DIR__ . '/symfony.php';
/**
* Symfony 3 Configuration
*/
// Symfony shared dirs
set('shared_dirs', ['var/logs', 'var/sessions']);
// Symfony writable dirs
set('writable_dirs', ['var/cache', 'var/logs', 'var/sessions']);
// Symfony executable and variable directories
set('bin_dir', 'bin');
set('var_dir', 'var');

View File

@ -1,48 +0,0 @@
<?php
namespace Deployer;
require_once __DIR__ . '/common.php';
set('shared_dirs', ['var/log', 'var/sessions']);
set('shared_files', ['.env.local.php', '.env.local']);
set('writable_dirs', ['var']);
set('migrations_config', '');
set('bin/console', function () {
return parse('{{release_path}}/bin/console');
});
set('console_options', function () {
return '--no-interaction';
});
desc('Migrate database');
task('database:migrate', function () {
$options = '--allow-no-migration';
if (get('migrations_config') !== '') {
$options = sprintf('%s --configuration={{release_path}}/{{migrations_config}}', $options);
}
run(sprintf('cd {{release_path}} && {{bin/php}} {{bin/console}} doctrine:migrations:migrate %s {{console_options}}', $options));
});
desc('Clear cache');
task('deploy:cache:clear', function () {
run('{{bin/php}} {{bin/console}} cache:clear {{console_options}} --no-warmup');
});
desc('Warm up cache');
task('deploy:cache:warmup', function () {
run('{{bin/php}} {{bin/console}} cache:warmup {{console_options}}');
});
desc('Deploy project');
task('deploy', [
'deploy:prepare',
'deploy:vendors',
'deploy:cache:clear',
'deploy:cache:warmup',
'deploy:publish',
]);
after('deploy', 'success');

View File

@ -1,48 +0,0 @@
<?php
namespace Deployer;
require_once __DIR__ . '/common.php';
set('shared_dirs', ['var/log', 'var/sessions']);
set('shared_files', ['.env.local.php', '.env.local']);
set('writable_dirs', ['var']);
set('migrations_config', '');
set('bin/console', function () {
return parse('{{release_path}}/bin/console');
});
set('console_options', function () {
return '--no-interaction';
});
desc('Migrate database');
task('database:migrate', function () {
$options = '--allow-no-migration';
if (get('migrations_config') !== '') {
$options = sprintf('%s --configuration={{release_path}}/{{migrations_config}}', $options);
}
run(sprintf('cd {{release_path}} && {{bin/php}} {{bin/console}} doctrine:migrations:migrate %s {{console_options}}', $options));
});
desc('Clear cache');
task('deploy:cache:clear', function () {
run('{{bin/php}} {{bin/console}} cache:clear {{console_options}} --no-warmup');
});
desc('Warm up cache');
task('deploy:cache:warmup', function () {
run('{{bin/php}} {{bin/console}} cache:warmup {{console_options}}');
});
desc('Deploy project');
task('deploy', [
'deploy:prepare',
'deploy:vendors',
'deploy:cache:clear',
'deploy:cache:warmup',
'deploy:publish',
]);
after('deploy', 'success');

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['typo3']);
/**
* DocumentRoot / WebRoot for the TYPO3 installation
*/

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['wordpress']);
set('shared_files', ['wp-config.php']);
set('shared_dirs', ['wp-content/uploads']);
set('writable_dirs', ['wp-content/uploads']);

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['yii']);
// Yii shared dirs
set('shared_dirs', ['runtime']);

View File

@ -1,54 +0,0 @@
<?php
namespace Deployer;
require_once __DIR__ . '/common.php';
/**
* Yii 2 Advanced Project Template configuration
*/
// Yii 2 Advanced Project Template shared dirs
set('shared_dirs', [
'frontend/runtime',
'backend/runtime',
'console/runtime',
]);
// Yii 2 Advanced Project Template shared files
set('shared_files', [
'common/config/main-local.php',
'common/config/params-local.php',
'frontend/config/main-local.php',
'frontend/config/params-local.php',
'backend/config/main-local.php',
'backend/config/params-local.php',
'console/config/main-local.php',
'console/config/params-local.php',
]);
/**
* Initialization
*/
task('deploy:init', function () {
run('{{bin/php}} {{release_path}}/init --env=Production --overwrite=n');
})->desc('Initialization');
/**
* Run migrations
*/
task('deploy:run_migrations', function () {
run('{{bin/php}} {{release_path}}/yii migrate up --interactive=0');
})->desc('Run migrations');
/**
* Main task
*/
task('deploy', [
'deploy:prepare',
'deploy:vendors',
'deploy:init',
'deploy:run_migrations',
'deploy:publish',
])->desc('Deploy your project');
after('deploy', 'success');

View File

@ -1,30 +0,0 @@
<?php
namespace Deployer;
require_once __DIR__ . '/common.php';
/**
* Yii 2 Basic Project Template configuration
*/
// Yii 2 Basic Project Template shared dirs
set('shared_dirs', ['runtime']);
/**
* Run migrations
*/
task('deploy:run_migrations', function () {
run('{{bin/php}} {{release_path}}/yii migrate up --interactive=0');
})->desc('Run migrations');
/**
* Main task
*/
task('deploy', [
'deploy:prepare',
'deploy:vendors',
'deploy:run_migrations',
'deploy:publish',
])->desc('Deploy your project');
after('deploy', 'success');

View File

@ -3,6 +3,8 @@ namespace Deployer;
require_once __DIR__ . '/common.php';
add('recipes', ['zend_framework']);
/**
* Main task
*/

View File

@ -88,6 +88,7 @@ class MainCommand extends SelectCommand
$this->telemetry([
'project_hash' => empty($this->deployer->config['repository']) ? null : sha1($this->deployer->config['repository']),
'hosts_count' => $this->deployer->hosts->count(),
'recipes' => $this->deployer->config->get('recipes', []),
]);
$hosts = $this->selectHosts($input, $output);
$this->applyOverrides($hosts, $input->getOption('option'));