yiisoft / yii2-queue

Yii2 Queue Extension. Supports DB, Redis, RabbitMQ, Beanstalk and Gearman
BSD 3-Clause "New" or "Revised" License
1.07k stars 295 forks source link

Add extra example starting queue #391

Closed markch123 closed 4 years ago

markch123 commented 4 years ago

What steps will reproduce the problem?

I found the instructions using yii to run queue commands confusing. In fact I'm still a little lost :) I'm presuming its my fault how I installed yii2. I have however managed to start a queue after much effort and thought it might help others by adding the example into the Basic usage section of the README.md.

./vendor/bin/yii queue/listen -v --appconfig=console/config/main.php

Maybe ./vendor/bin can be removed from the example but there are several copies of yii in an installation, so it may help. If the example is plainly broken please ignore.

What's expected?

What do you get instead?

Additional info

Q A
Yii version
PHP version
Operating system
samdark commented 4 years ago

There's no example with ./vendor/bin/yii anywhere in this repository as far as I've checked. What example do you mean?

markch123 commented 4 years ago

I meant the example that I provided had ./vendor/bin/yii while the other examples on the page simply had yii. So to make it more consistent just add

yii queue/listen -v --appconfig=console/config/main.php.

Next time I will send in a pull request, its easier to understand for all parties :-)

samdark commented 4 years ago

console/config/main.php should be default. Also, config location is specific for advanced template so I don't think it should be added.