Answer the question
In order to leave comments, you need to log in
How to execute yii commands in shell script?
I am writing a script to automatically deploy a project from a git repository. In the php file, I pass the name of the file with the shell script to the exec() function with the following content:
#!/bin/sh
git pull
php yii migrate
In this case, the git pull command is executed and the result is displayed in the logs, but yii migrate does not, even the message is not displayed about the fact that such a command was not found, or something like that. What could be the reason?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question