Create .bat to run php artisan serve
Hi, is what I am asking possible. I tried this.
@ECHO OFF
cd C:\Users\Josh\Desktop\Files\websites\T-Tobacco
php artisan serve
PAUSE
It's possible, your batch file should be working as long as:
- The path provided to the
cd command is valid ("C:\Users\Josh\Desktop\Files\websites\T-Tobacco")
- You have set up the laravel project in the folder provided ("T-Tobacco"), which includes running
composer install
- PHP is installed and added to your windows Path variable
What problem are you having? (you can temporarily remove the @echo off line so you have better output for troubleshooting purposes).
PS: The pause command shouldn't be required since the window will remain open until you stop the server with Control+C.
Please or to participate in this conversation.