PHP code example of lianmafutra / deploy
1. Go to this page and download the library: Download lianmafutra/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/ */
lianmafutra / deploy example snippets artisan down
artisan optimize
artisan view:clear
artisan view:cache
artisan up
bash
php artisan vendor:publish --provider="LianMafutra\Deploy\LibraryServiceProvider" --tag=deploy --force
app/Console/Commands/Deploy.php
app/Console/Commands/DeploySetup.php
config/deploy.php
bash
php artisan deploy:setup
config/deploy.php
'command-first-deploy' => [
'composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev',
'php artisan down',
'php artisan optimize',
'php artisan storage:link',
'php artisan migrate --force',
'php artisan auth:clear-resets',
'php artisan view:clear',
'php artisan view:cache',
'php artisan up'
],
'command-deploy' => [
'composer install --prefer-dist --no-scripts -q -o',
'php artisan down',
'php artisan optimize',
'php artisan view:clear',
'php artisan view:cache',
'php artisan up'
],
'command-optimize' => [
'php artisan down',
'php artisan optimize',
'php artisan view:clear',
'php artisan view:cache',
'php artisan up'
]
bash
php artisan deploy