B
B
bllnd2015-06-27 01:26:21
Yii
bllnd, 2015-06-27 01:26:21

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

1 answer(s)
A
Alexander, 2015-06-27
@liff

php yiiC migrate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question