How to run cronjobs? #152
-
Hello I got Symfony to work with frankenphp with Docker and a MySQL Database |
Beta Was this translation helpful? Give feedback.
Answered by
withinboredom
May 25, 2023
Replies: 1 comment
-
You'd do a cronjob just like anything else: php vendor/bin/console my:command If you're using Docker, you can do the same from the host: docker run --rm --name cron-job --network my-network my-image php vendor/bin/console my:command
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dunglas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd do a cronjob just like anything else:
If you're using Docker, you can do the same from the host:
--rm
and--name
would delete your logs, but ensures that exactly one is running at any given time. You can still get the logs depending on how you have logging set up on the host.