Homestead no longer drops databases on provision

homestead-provision

Laravel Homestead, the official pre-packaged Vagrant box, just received a new update to the way it reprovisions the box. Previously, to add a new site you could either use the serve shortcut from within the VM or add your new site to the yaml configuration file and then reprovision.

The problem with provisioning the box is that it would drop all your databases. This new feature prevents those from being dropped so you do not lose any data. Losing all the databases was a hassle if you use one Homestead box for all your local sites.

If you prefer the old style of dropping the databases you can run destroy instead. That will wipe out the entire VM.

I am one of those that use one Homestead environment for everything and this is a welcome change.

For more information on Homestead see the official documentation and for more information on this change you can see the commit on Github.


Filed in: News / Homestead


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Senior Laravel Engineer
Remote okay (must already live in USA)
Hawthorne Effect
Senior Software Engineer (Remote - Contract)
Remote
Koodi Systems
PHP Developer
Pittsburgh / Remote
Sequoia Waste Solutions
Software Developer
Eindhoven
Simac IDS
Application Developer Level II (CakePHP / MySql / Vue.js)
Lancaster, PA
Harbor Compliance
FULL STACK LARAVEL DEVELOPER
LONDON - WEST END
AMPERSAND HEATLH
Mid/Senior Laravel Developer - U.S. Developers Only
Kenner, Louisiana
Profit Miner Technologies