I have finished my project and I need a file to run 3 commands in terminal.
php artisan serve
php artisan migrate
php artisan queue:work --daemon --timeout=
and I need to receive database name,username,password and change .env file
This is my bash shell so far
#!/bin/bash
echo "Server Ready"
sudo php artisan serve;
echo "Migration Started";
sudo php artisan migrate;
echo "migration Finished Successfuly";
echo "Queue Started";
sudo php artisan queue:work --daemon --timeout=3000;
but I need help to make it fully work.
I run this script and after first command php artisan serve
my script stopped