From 40179ca89ea859fe24006164a7a9d38057256416 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 8 Oct 2020 19:38:38 +0100 Subject: [PATCH] Add pull-from-prod command Add a `pull-from-prod` host command for DDEV, to do what was previously being done in the Makefile. --- .ddev/commands/host/pull-from-prod | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .ddev/commands/host/pull-from-prod diff --git a/.ddev/commands/host/pull-from-prod b/.ddev/commands/host/pull-from-prod new file mode 100755 index 0000000..98fc5df --- /dev/null +++ b/.ddev/commands/host/pull-from-prod @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +main() { + cd tools/ansible + ansible-playbook download-database.yml + ddev import-db --src ../../dump.sql.gz + rm ../../dump.sql.gz +} + +main