Laravel app ready for production mode - How To

Laravel app ready for production mode - How To - Hallo sahabat Tinta Network, Pada Artikel yang anda baca kali ini dengan judul Laravel app ready for production mode - How To, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : Laravel app ready for production mode - How To
link : Laravel app ready for production mode - How To

Baca juga


Laravel app ready for production mode - How To

 

Laravel - What steps should one take to make a 

Laravel app ready for production mode


  1. Apply changes to .env file:
    • APP_ENV=production
    • APP_DEBUG=false
  2. Make sure that you are optimizing Composer's class autoloader map (docs):
    • composer dump-autoload --optimize
    • or along install: composer install --optimize-autoloader --no-dev
    • or during update: composer update --optimize-autoloader
  3. Optimizing Configuration Loading:

    • php artisan config:cache
  4. Optimizing Route Loading

    • php artisan route:cache
  5. Compile all of the application's Blade templates:
    • php artisan view:cache
  6. Cache the framework bootstrap files:

    • php artisan optimize
  7. (Optional) Compiling assets (docs):

    • npm run production
  8. (Optional) Generate the encryption keys Laravel Passport needs (docs):

    • php artisan passport:keys
  9. (Optional) Start Laravel task scheduler by adding the following Cron entry (docs):

    • * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
  10. (Optional) Install, config and start the Supervisor (docs):

  11. (Optional) Create a symbolic link from public/storage to storage/app/public (docs):
    • php artisan storage:link

Terima kasih telah berkunjung di blog Tinta Network.


Demikianlah Artikel Laravel app ready for production mode - How To

Sekianlah artikel Laravel app ready for production mode - How To kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.

Anda sekarang membaca artikel Laravel app ready for production mode - How To dengan alamat link https://tintanetwork.blogspot.com/2023/05/laravel-app-ready-for-production-mode.html

Posting Komentar

Post a Comment (0)

Lebih baru Lebih lama