vagrant: Destroy Plinth development database when box is destroyed

Fixes #1424

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati 2018-11-16 06:22:14 +05:30 committed by James Valleroy
parent fe74555811
commit 56ee33793e
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

6
Vagrantfile vendored
View File

@ -47,4 +47,10 @@ $ sudo /vagrant/run --develop
Plinth will be available at https://localhost:4430/plinth (with
an invalid SSL certificate).
"
config.trigger.before :destroy do |trigger|
trigger.warn = "Dropping Plinth database"
trigger.run_remote = {
inline: "rm /vagrant/data/var/lib/plinth/plinth.sqlite3"
}
end
end