Is there a way to use after.sh to run php artisan migrate?
I tried this:
#!/bin/bash
cd exercise-8
vagrant ssh
php artisan migrate
I realized a few things
- you have to
vagrant sshbefore you do migrations - the bash script runs from
/home/vagrant vagrant sshreturns/tmp/vagrant-shell: line 3: vagrant: command not foundphp artisanreturns==> default:
==> default: [PDOException]
==> default: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)
==> default: