We all know that Magento has CLI command. You can call Magento CLI commands using shortcuts instead of the full command name. For example, you can call
bin/magento setup:upgrade
using bin/magento
If you sees this error:
Can't run this operation: deployment configuration is absent. Run 'magento setup:config:set --help' for options.
Please check whether your two files are exist:
1. app/etc/env.php 2. app/etc/config.php
Next, check the settings of dababase and redis connection information, credentials are correct.
Once the above are correctly set, rerun the command
bin/magento setup:upgrade
You might face another error
Fatal error: Uncaught Error: Cannot instantiate interface Magento\Store\Api\StoreRepositoryInterface
When seeing this error, do run another command below:
php -dmemory_limit=-1 bin/magento setup:di:compile
Note, using “-dmemory_limit=-1″ is so that you won’t get “Allowed memory size of 134217728 bytes exhausted” error.
Hope this helped someone out there.
What do you think?