1. Go to this page and download the library: Download dennenboom/harvest 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/ */
dennenboom / harvest example snippets
return [
'deployments' => [
'uat' => [
// The SSH command used to connect to the server
'ssh_command' => 'ssh user@host -p2121',
// Prompt for confirmation before executing actions
'ask_confirmation' => true,
// Actions to execute on the remote server
'actions' => [
'cd /var/www/my-app',
'git pull origin main',
'composer install --no-dev --optimize-autoloader',
'php artisan migrate --force',
'php artisan config:cache',
],
],
'production' => [
'ssh_command' => 'ssh user@production-host',
'ask_confirmation' => true,
'actions' => [
'cd /var/www/my-app',
'git pull origin main',
'composer install --no-dev --optimize-autoloader',
'php artisan migrate --force',
],
],
],
];
bash
# On your host machine
php artisan harvest:deploy uat
bash
# Will prompt for version
php artisan harvest:deploy production
# Pass version via command line
php artisan harvest:deploy production --var=version=v1.57.3
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.