Deployer full (ok)

https://deployer.org/docs/7.x/getting-started

1. Ví dụ đã làm trên Ubuntu

/home/lionel/deployer/composer.json

{
    "require-dev": {
        "deployer/deployer": "^7.0"
    }
}

/home/lionel/deployer/deploy.php

<?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

C:\Users\Administrator\AppData\Local\Temp\scp10183\home\hotfactory\deploy.php

Chạy lệnh sau:

Cai dat tren local windows

https://stackoverflow.com/questions/39805060/how-to-install-and-run-deployer-on-windows

Last updated

Was this helpful?