-
-
Notifications
You must be signed in to change notification settings - Fork 642
Why does a vagrant provision rebuild the machine? #755
Comments
@mixplex - Did you use By default, there's no way for the roles in Drupal VM to delete any databases, but if you do things manually to database permissions after the VM is built then provision again, Ansible will put all the databases back into the state as defined in If you run But I run |
Yes. I used vagrant reload --provision. I'll see if I can replicate it and let you know. I had pulled changes first and then ran the provision which wanted to update.
I chose to discard the changes. I am new to composer builds and executed a composer update from /drupal/composer.json while I was building the vm in another shell - thinking this task would complete before vagrant got up to that part. It seemed to, but then it couldn't finish, reporting that the composer.lock was busy. That's what I recall, though this may be inaccurate. Thanks for your response. All is well otherwise with three VM's working as expected. |
I figured it out. I have been following the thread on switchable php versions, #667; #714 but I am not there yet. Meanwhile, I have two directories I am swapping out - but my shell sticks to the directory I move. When I run vagrant up from the vm I moved, it makes a new machine in the new directory location. I needed to use a new terminal window or make sure I was in the right place. |
The exports file kept track of new machine builds in different locations... |
@mixplex - Ah, that definitely makes sense then. Vagrant doesn't like directory changes much :) |
Hello
I am using the latest Drupalvm and building an Unbuntu 1604, PHP 7 machine. When I reloaded and provisioned, it rebuilt the machine, wiping out my dbs and my custom .bashrc file. I can't figure out why it did this. I made a minor change to a site alias name. I have experienced it before with this php 7 machine but not with another machine I use with php 5.6. I would like to know how to prevent this from happening again as I get further into development on multiple sites. Is this too little information to provide?
The text was updated successfully, but these errors were encountered: