Cheerlock
Cheerlock

Reputation: 91

Laravel queue worker on dokku

I have problem with starting Laravel queue worker on latest Dokku.

I am using default heroku php buildpack. There is my procfile

web: vendor/bin/heroku-php-apache2 public/
worker: php artisan queue:work --daemon

Worker container is starting, but artisan command is not. No errors in log

If i manually enter worker container and start worker - it starts and works fine.

PS i tried to install shoreman plugin (https://github.com/statianzo/dokku-shoreman.git). Still same result.

Upvotes: 2

Views: 1006

Answers (1)

xploshioOn
xploshioOn

Reputation: 4125

remember that your procfile doesn't execute like a .sh file, try with this

web: vendor/bin/heroku-php-apache2 public/
worker: php artisan queue:listen 

Upvotes: 1

Related Questions