Deployer full (ok)
https://deployer.org/docs/7.x/getting-started
1. Ví dụ đã làm trên Ubuntu
{
"require-dev": {
"deployer/deployer": "^7.0"
}
}<?php
namespace Deployer;
require 'recipe/wordpress.php';
// Config
set('repository', 'https://github.com/phamngoctuong/wordpressgitserver.git');
add('shared_files', []);
add('shared_dirs', []);
add('writable_dirs', []);
// Hosts
host('localhost')
->set('remote_user', 'lionel')
->set('deploy_path', '/var/www/test123');
// Desc
desc('Instructs the master supervisor to continue processing jobs');
// Hooks
after('deploy:failed', 'deploy:unlock');











2. Ví dụ đã lầm trên server

PreviousSử dụng async, await, bất đồng bộ lấy dữ liệu Pagination, sử dụng Deferred 👌 phần 2 (ok)NextCác môi trường sử dụng test code.sololearn.com
Last updated