PHP code example of florianmoser / plesk-deployer

1. Go to this page and download the library: Download florianmoser/plesk-deployer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

florianmoser / plesk-deployer example snippets




namespace Deployer;

r/plesk-deployer/recipe/chroot_fixes.php';

set( 'chroot_path_prefix', '<your-path-prefix>' );
set( 'chroot_index_file', 'index.php' );


host( 'your-host.com' )
    ->user( 'username' )
    ->set( 'deploy_path', '<your-ssh-root>' );


echo $_SERVER['DOCUMENT_ROOT'];

    set('git_ssh_command', 'ssh');