Run Artisan within linux shell script

Asked

Viewed 66 times

0

How do I shell a linux script to run an Artisan command from Laravel?

ex: php artisan migrate

but create a script to run this command

1 answer

1

It would be something like this that you need ?

#!/bin/bash

/usr/bin/php /pasta/root/projeto/artisan cache:clear

Browser other questions tagged

You are not signed in. Login or sign up in order to post.