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 :: php session destroy not working 
::  
Php :: Method IlluminateDatabaseEloquentCollection 
:: use htaccess to redirect in cpanel laravel 
:: Laravel Unique Multiple Column validation 
::  
Php ::  
Php ::  
Php :: run phpstan terminal 
Php :: php class instance 
Php :: guzzle download file 
Php ::  
Php :: laravel log error 
:: How to go back to the main page in php 
Php ::  
Php :: php enablem mod 
Php :: php artisan websockets serve 
Php :: count array index foreach in php 
::  
:: php response image 
Php :: php custom error log 
Php ::  
Php :: closure in php 
::  
Php ::  
Php :: wamp php version update 
Php ::  
:: laravel eloquent relationships 
Php :: :: in php 
Php :: php implode in html tags 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =