Magento 2 – Where is the update/cron.php File

cronmagento-2.1magento2

Following this interesting question from Fabian: Reasons to setup cronjob for setup:cron:run and update/cron.php on a deployed production system?

I've discovered that my Magento 2 installed via GitHub does not have the update/cron.php file.

Edit: my install does not have an update folder at all.

Where does that file come from ? How can I get it when installing from GitHub ?

Best Answer

I read the doc a second time (http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html) and here's the answer:

If you cloned the GitHub repository you don’t have an update directory and errors result if you run magento setup:cron:run. These cron jobs work in the Web Setup Wizard, which contributing developers cannot use for installing or updating the Magento application or components.

So basically people using Magento 2 from GitHub can't use the Web Setup Wizard to install/update Magento components, which is painful if let's say you installed M2 via GitHub and wanna switch to Web Setup Wizard after some point.

Related Topic