PHP code example of knackline / laravel-deploy
1. Go to this page and download the library: Download knackline/laravel-deploy 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/ */
knackline / laravel-deploy example snippets
return [
'script_path' => base_path('deploy.sh'), // Path to the generated deployment script
'project_path' => '/path/to/your/project', // Path to your Laravel project
'git_branch' => 'main', // Default Git branch to deploy
'php_path' => '/usr/bin/[email protected]', // PHP executable path
];
bash
php artisan deploy:setup
bash
php artisan deploy:setup
bash
php artisan deploy