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