Add pull-from-prod command
Add a `pull-from-prod` host command for DDEV, to do what was previously being done in the Makefile.
This commit is contained in:
parent
b83317634f
commit
40179ca89e
10
.ddev/commands/host/pull-from-prod
Executable file
10
.ddev/commands/host/pull-from-prod
Executable file
|
@ -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
|
Loading…
Reference in a new issue