Home > PHP Framework > Laravel > body text

What are the deployment instructions for laravel?

下次还敢
Release: 2024-04-09 15:09:21
Original
1023 people have browsed it

Laravel deployment instructions include: clear cache, compile assets, run database migrations, install dependencies, and restart the application. Check the reason for the last deployment failure. Processes queued jobs and attempts to process failed jobs up to 3 times. Create a database backup. Generate OAuth2 client and secret. Install the Passport authentication system. Create a symbolic link to the storage link. Run database migration. Clear application cache. Caching application configuration.

What are the deployment instructions for laravel?

Laravel’s deployment instructions

Laravel provides a variety of deployment instructions to simplify the application deployment process . The main instructions are as follows:

1. php artisan deploy

This command is used to perform a set of predefined tasks, including:

  • Clear cache
  • Compile assets
  • Run database migration
  • Install dependencies
  • Restart application

2 .php artisan deploy:failed

This command is used to view the reason for the last deployment failure.

3. php artisan queue:work --once --tries=3

This command is used to process queued jobs and try to process failed jobs up to 3 times.

4. php artisan backup:run

This command is used to create a database backup.

5. php artisan passport:keys

This command is used to generate OAuth2 client and keys.

6. php artisan passport:install

This command is used to install the Passport authentication system.

7. php artisan storage:link

This command is used to create a symbolic link pointing to the storage link.

8. php artisan migrate

This command is used to run database migration.

9. php artisan cache:clear

This command is used to clear the application cache.

10. php artisan config:cache

This command is used to cache application configuration.

The above is the detailed content of What are the deployment instructions for laravel?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template