| 13:48 | evered[m] | I am glad to hear the team caught it in time. 🐧 |
| 16:53 | symbioquine[m] | paul121: On the last dev call I think I saw your development testing process involved doing site-install to get back to a clean state... I've been doing the more nuclear option of shutting down docker deleting all the data and either restoring from a backup or using a fresh install. Have you found that simply doing a site-install provides sufficient insulation between the old (maybe broken) site and whatever you're doing next? |
| 17:09 | mstenta[m] | `drush site-install` will drop all tables in the database and do a fresh drupal install (like visiting `install.php` in the browser) |
| 17:09 | mstenta[m] | it won't touch existing files though (except settings.php which it writes to) |
| 17:10 | mstenta[m] | so eg: uploaded files won't be deleted by it |
| 17:11 | mstenta[m] | I think this'll work: |
| 17:11 | mstenta[m] | `sudo docker-compose exec -t www drush site-install -y --db-url=farm:farm@db/farm --account-pass=admin'` |
| 17:13 | mstenta[m] | * this is what the drush command looks like: |
| 17:13 | mstenta[m] | `drush site-install -y --db-url=farm:farm@db/farm --account-pass=admin'` |
| 17:13 | mstenta[m] | i have a bash alias for "starting fresh" in my local dev env |
| 17:14 | mstenta[m] | * this is what the drush command looks like: |
| 17:14 | mstenta[m] | `drush site-install -y --db-url=farm:farm@db/farm --account-pass=admin` |
| 17:48 | paul121[m] | Yep, drush site-install should be sufficient for testing a "fresh install" ! At least I don't think I have run into issues |
| 17:49 | paul121[m] | Sometimes configuring the instance with test data and taking a snapshot is convenient. So there is a restore point if something breaks but I don't find myself doing that lately |
| 17:50 | symbioquine[m] | What kind of snapshot do you mean? |
| 17:50 | paul121[m] | <mstenta[m]> "so eg: uploaded files won't be..." <- This shouldn't cause problems tho, correct? I think my local has various files in the private files directory but a fresh install doesn't know about them so I don't think there is an issue. Just messy filesystem maybe :-) |
| 17:51 | paul121[m] | Oh, by snapshot I mean exporting the database. I suppose if you were testing something related to files you want to make sure they are not deleted either |