0

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?

1
  • As I know this is impossible in case you don't have full permission to file system. I recommend to create a ticket to Cloud team with this question. Sep 2, 2022 at 14:27

1 Answer 1

0

Login to Magento Cloud via SSH

Example:-

ssh [email protected]

& Run

nano app/etc/env.php

& 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'

Press Ctrl + z + Y to save the file

enter image description here

Now run

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.