From d127cd1601e6a5b29812e41ef7417923e86aa24f Mon Sep 17 00:00:00 2001 From: Josh Manders Date: Tue, 29 Oct 2013 22:24:22 -0500 Subject: [PATCH] migrate and db:seed for laravel projects --- vagrant/provision.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vagrant/provision.sh b/vagrant/provision.sh index 70ae4f8..e22e29a 100755 --- a/vagrant/provision.sh +++ b/vagrant/provision.sh @@ -61,6 +61,10 @@ sudo mv composer.phar /usr/local/bin/composer if $LARAVEL_PROJECT; then echo "--- Lets make sure the app storage directory is writable. ---" chmod -R o+w /vagrant/app/storage +echo "--- Migrate the database for Laravel project ---" +php artisan migrate --env=local +echo "--- Now lets run the db:seed command! ---" +php artisan db:seed --env=local fi echo "--- All set to go! Would you like to play a game? ---"