I have a site in Elastic Beanstalk and everything is running fine apart from Cron scheduling.
I’ve followed the instructions here on how to setup the cron tasks, however when running it returns the following:
There are no commands defined in the "concrete:scheduler" namespace.
Here is my cron config:
* * * * * root /usr/local/bin/c5-scheduler.sh
$PHP /var/www/html/concrete/bin/concrete concrete:scheduler:run
command: "rm -f /etc/cron.d/mycron.bak"
Any help would be appreciated.
In addition to this, I’ve just run
concrete/bin/concrete list on both my dev and production environments.
On dev I have the following command groups:
Is there a config setting I need to update for my production environment that will set the correct locations for the other command groups?
Hi @lgtlee - strange that they’re available on your dev environment and not your prod environment - do you have the same version of Concrete CMS installed in both places?
Hi Evan - it is exactly the same version. In fact it’s exactly the same code. I have suspicion it’s down to the production environment not being able to detect the
DIR_BASE path correctly.
If I run
c5:is-installed on both environments development shows as installed and production shows not installed.
I’ve been looking if there is a way to manually define the
DIR_BASE somewhere but can’t seem to find it.
hmm - I wonder if you need to run
composer install or
composer update in production or something (you might create an intermediary environment to test that out before you run it on production) - seems like there’s some stuff missing.
But yeah otherwise not too sure…