Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel deployment

composer install --optimize-autoloader --no-dev
Comment

Laravel Deploy in production

#!/bin/sh
set -e
 
echo "Deploying application ..."
 
# Enter maintenance mode
(php artisan down --message 'The app is being (quickly!) updated. Please try again in a minute.') || true
    # Update codebase
    git fetch origin deploy
    git reset --hard origin/deploy
 
    # Install dependencies based on lock file
    composer install --no-interaction --prefer-dist --optimize-autoloader
 
    # Migrate database
    php artisan migrate --force
 
    # Note: If you're using queue workers, this is the place to restart them.
    # ...
 
    # Clear cache
    php artisan optimize
 
    # Reload PHP to update opcache
    echo "" | sudo -S service php7.4-fpm reload
# Exit maintenance mode
php artisan up
 
echo "Application deployed!"
Comment

PREVIOUS NEXT
Code Example
Php :: mssql php 
Php :: php object example 
Php :: php preg match 
Php :: increase file upload size limit 
Php :: redirect to intent url after login laravel 
Php :: laravel gmail send mail 2020 
Php :: laravel disable logging 
Php :: livewire model array 
Php :: csv file import to mysqli using php 
Php :: laravel group concat values showing duplicate 
Php :: htaccess rewrite optional parameters 
Php :: if condtion in varibale value how to change in loop in php 
Php :: laravel index method 
Php :: Laravel artisan command to create model plus migration 
Php :: get the user detail inside the constructor Laravel 
Php :: how to extract code from controller to helpers or other method in laravel 
Php :: php print html code 
Php :: wp post view 
Php :: phpunit test only one method 
Php :: What is the name of scripting engine in PHP? 
Php :: laravel collection splice 
Php :: How to insert header in php 
Php :: add javascript to wordpress functions php 
Php :: Laravel factory creating tempory data 
Php :: assign random to a variable in PHP 
Php :: how to hide submenu admin wordpress 
Php :: php fn closure 
Php :: In PackageManifest.phpIn PackageManifest.php line 122: Undefined index: name line 122: Undefined index: name 
Php :: redirect to codeigniter 4 
Php :: Basic HTTP Authentication example 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =