7.4 KiB
common
- Require
recipe/deploy/check_remote.php
recipe/deploy/cleanup.php
recipe/deploy/clear_paths.php
recipe/deploy/copy_dirs.php
recipe/deploy/info.php
recipe/deploy/lock.php
recipe/deploy/push.php
recipe/deploy/release.php
recipe/deploy/rollback.php
recipe/deploy/setup.php
recipe/deploy/shared.php
recipe/deploy/status.php
recipe/deploy/symlink.php
recipe/deploy/update_code.php
recipe/deploy/vendors.php
recipe/deploy/writable.php
- Config
- Tasks
deploy:prepare
deploy:publish
deploy:success
deploy:failed
logs
— Follow latest application logs.
Config
user
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,
otherwise output of whoami
command.
keep_releases
Number of releases to preserve in releases folder.
repository
Repository to deploy.
shared_dirs
List of dirs what will be shared between releases. Each release will have symlink to those dirs stored in {{deploy_path}}/shared dir.
set('shared_dirs', ['storage']);
shared_files
List of files what will be shared between releases. Each release will have symlink to those files stored in {{deploy_path}}/shared dir.
set('shared_files', ['.env']);
copy_dirs
List of dirs to copy between releases.
For example you can copy node_modules
to speedup npm install.
clear_paths
List of paths to remove from release_path.
clear_use_sudo
Use sudo for deploy:clear_path task?
use_relative_symlink
use_atomic_symlink
default_timeout
Default timeout for run()
and runLocally()
functions. Default to 300 seconds.
Set to null
to disable timeout.
env
Remote environment variables.
set('env', [
'KEY' => 'something',
]);
It is possible to override it per run()
call.
run('echo $KEY', ['env' => ['KEY' => 'over']]
dotenv
Path to .env
file which will be used as environment variables for each command per run()
.
set('dotenv', '[current_path](/docs/recipe/common.md#current_path)/.env');
current_path
Return current release path. Default to {{deploy_path}}/current
.
set('current_path', '/var/public_html');
sudo_askpass
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
sudo command executed.
Tasks
deploy:prepare
This task is group task which contains next tasks:
deploy:info
deploy:setup
deploy:lock
deploy:release
deploy:update_code
deploy:shared
deploy:writable
deploy:publish
This task is group task which contains next tasks:
deploy:success
Prints success message
deploy:failed
Hook on deploy failure.
logs
Follow latest application logs.