After moving a site to a new server,
drush cron stopped working and now I am getting the following error:
Command "cron" is not defined.
What am I missing?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
The issue was fairly simple to solve.
I had forgotten to create a settings.php for each site. I was able to find out by running the following command:
drush --local -d -r /var/www/testproject/build/html status
And from the output I was able to see:
[debug] Could not find a Drupal settings.php file at sites/default/settings.php. [0.14 sec, 10.8 MB]
That was it