PHP code example of innocenzi / deployer-recipe-forge

1. Go to this page and download the library: Download innocenzi/deployer-recipe-forge 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/ */

    

innocenzi / deployer-recipe-forge example snippets


namespace Deployer;

// This is load.php';
\Deployer\Forge::make()->configure();

// This is your custom deployment script
task('deploy:build', function () {
	  // build assets here
    runLocally('bun i');
    runLocally('bun run build');
});

\Deployer\Forge::make()
	->triggerDeploymentsOnForge()
	->configure();

\Deployer\Forge::make()
    ->buildOnServer()
    ->configure();

\Deployer\Forge::make()->configure();

task('deploy:build', function () {
    runLocally('bun i');
    runLocally('bun run build');
});