From 4a657369743c971eff9eece9c43405a1fc66c2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Str=C4=85k?= Date: Fri, 21 Apr 2017 10:48:07 +0200 Subject: [PATCH 1/2] Add files via upload --- mage2docker.plugin.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mage2docker.plugin.zsh b/mage2docker.plugin.zsh index fff4cf4..7ed1908 100644 --- a/mage2docker.plugin.zsh +++ b/mage2docker.plugin.zsh @@ -37,7 +37,7 @@ _mage2docker() { compadd $(_docker_get_container_name) ;; command) - compadd "$@" bash-www bash logs magento mage mage-cache mage-di mage-upgrade mage-report mage-log grunt watch rename rm restart stop inspect top + compadd "$@" bash-www bash logs magento mage mage-cache mage-reindex mage-di mage-upgrade mage-report mage-log grunt watch rename rm restart stop inspect top ;; options) case $words[3] in @@ -79,6 +79,9 @@ mage2docker () { mage-cache) _mage2docker_mage $1 cache:clean ;; + mage-reindex) + _mage2docker_mage $1 indexer:reindex + ;; mage-upgrade) _mage2docker_mage $1 setup:upgrade ;; @@ -91,9 +94,6 @@ mage2docker () { grunt) docker exec -it -u www-data $1 grunt ;; - watch) - docker exec -it -u www-data $1 grunt watch - ;; mage-report) docker exec -it -u www-data $1 cat var/report/$3 ;; From f18e4f712ebb97e8d845c0605641c25fd939c44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Str=C4=85k?= Date: Fri, 21 Apr 2017 10:53:54 +0200 Subject: [PATCH 2/2] Add files via upload --- mage2docker.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mage2docker.plugin.zsh b/mage2docker.plugin.zsh index 7ed1908..bd181ef 100644 --- a/mage2docker.plugin.zsh +++ b/mage2docker.plugin.zsh @@ -94,6 +94,9 @@ mage2docker () { grunt) docker exec -it -u www-data $1 grunt ;; + watch) + docker exec -it -u www-data $1 grunt watch + ;; mage-report) docker exec -it -u www-data $1 cat var/report/$3 ;;