User Tools

Site Tools


ddev

This is an old revision of the document!


DDEV

Install

brew tap drud/ddev && brew install ddev

DDEV: reverse-deployment and import DB

ddev-update-db() {
    REVERSE=$(which typo3reverse)
    CONFIG=$1
 
    if [ ! -d ".ddev" ]; then
	  	echo "This folder is not a ddev project"
    fi
 
    if [ -d ".ddev" ]; then
        if [ -z "$1" ]
          then
            CONFIG='live'
        fi
        $REVERSE "$CONFIG" && ddev stop --remove-data && ddev import-db --src ".data/db/dump/$CONFIG.sql"
    fi
}
ddev.1571833650.txt.gz · Last modified: 2019/10/23 14:27 by admin