I need to turn on developer mode, but NOT via the following command:
bin/magento deploy:mode:set developer
I need to turn it on via deploy.
Does anyone know how to do it?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Login to Magento Cloud via SSH
& Add the Following or Update the following on app/etc/env.php File. This file has write access & can be updated using SSH.
'MAGE_MODE' => 'developer'
Ctrl + z + Y to save the file
php bin/magento cache:clean
Now you can check the mode using
php bin/magento deploy:mode:show
You'll find Developer mode is active.
Please note :- It is always advisable to change the following file locally and use
git push origin <environment>
to update it in Cloud Environment, Automatically Triggering Deploy, Not to edit the file directly using SSH.