How to change app path on the fly from a custom task?
-
12-11-2019 - |
문제
I'm creating a project that consists on calling 'bake project' (using DispatchShell
) from inside a task. The problem is, after I bake it, how do I get the app path to change from the current path to the newly baked one so I can automatically run other tasks inside it?
The code is the following:
public function execute(){
// ...
$this->dispatchShell(/* Bake project script */);
/* Where I want to change app path */
$this->dispatchShell(/* creating a schema */);
}
I have tried running $this->dispatchShell('-app appPath');
but it doesn't work.
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow