“Penempatan Laravel” Kode Jawaban

Penempatan Laravel

composer install --optimize-autoloader --no-dev
Ahmad Eyamin

Laravel Deploy dalam Produksi

#!/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!"
Bewildered Butterfly

Jawaban yang mirip dengan “Penempatan Laravel”

Pertanyaan yang mirip dengan “Penempatan Laravel”

Lebih banyak jawaban terkait untuk “Penempatan Laravel” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya