简体   繁体   中英

Can i run multiple command with artisan serve laravel?

Is it possible to run some other arrtisan command when we run php artisan serve . at the same time? Is there any way to do that?

You can run multiple commands separated by a semi-colon.

For example:

php artisan view:clear; php artisan route:clear; php artisan cache:clear; php artisan config:clear 

Would that help?

You need to setup supervisor on the server. It will start the queue:work for you. It can also run multiple executions of same commands.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM