From f980351ee197efee6869b04ad03ed0ad95cde663 Mon Sep 17 00:00:00 2001 From: poul-kg Date: Thu, 17 Jul 2014 03:42:22 -0700 Subject: [PATCH] Each new command forgets about what was before --- Shell-plugin.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Shell-plugin.md b/Shell-plugin.md index 7867eff..1bac130 100644 --- a/Shell-plugin.md +++ b/Shell-plugin.md @@ -18,6 +18,17 @@ shell: shell: - "cd /www" - "chmod u+x %buildpath%/bin/console" - - "%buildpath%/bin/console build" + - "%BUILD_PATH%/bin/console build" ``` + +#### Each new command forgets about what was before + +So if you want cd to directory and then run script there, combine those two commands into one like: + +```yml +shell: + - "cd %BUILD_PATH% && php artisan migrate" # Laravel Migrations +``` + + [See variables which you can use in shell commands](https://github.com/Block8/PHPCI/wiki/Interpolation) \ No newline at end of file