smart48 / larak8

DigitalOcean Kubernetes Deployment of Laravel App
2 stars 3 forks source link

PHP Worker Missing #1

Closed jasperf closed 3 years ago

jasperf commented 3 years ago

PHP Worker missing in deployment. See image at https://github.com/smart48/smt-php-worker . Needs to be added to DO /deployments/web.yml and to local setup /local/deployment.yml

jasperf commented 3 years ago

Seems old cron.yml was deployments/phpworker.yml to renamed it and moved it to deployments. But needs checking. Not sure if we should run the schedule command here to start things up.

jasperf commented 3 years ago

We do have

#
#--------------------------------------------------------------------------
# Optional Supervisord Configuration
#--------------------------------------------------------------------------
#
# Modify the ./supervisor.conf file to match your App's requirements.
# Make sure you rebuild your container with every change.
#

COPY supervisord.conf /etc/supervisord.conf

ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c",  "/etc/supervisord.conf"]

in php worker image Dockerfile already so perhaps command: ["/usr/local/bin/php", "artisan", "schedule:run"] not needed, but this needs checking.

jasperf commented 3 years ago

Close this issue as PHP Worker deployment had been located. We will test to see if all works together in the coming days.