cancel
Showing results for 
Search instead for 
Did you mean: 

Switch back from develop to default

Switch back from develop to default

We switched the mode to develop, but now we want to switch back to default? How can we do that? It's not possible with commandline...

8 REPLIES 8

Re: Switch back from develop to default

How to switch a Magento 2 store from the developer mode to production? https://mage2.pro/t/957

Re: Switch back from develop to default

I know how to switch to production, but I want to switch back to default.. I can switch from default to develop to production, but not back to default.

Re: Switch back from develop to default

There is no the "default" mode. There are only the "developer" and the "production" modes: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-mode.html#config-mode...

Re: Switch back from develop to default

Re: Switch back from develop to default

Oh, sorry, you are right!
Is the "bin/magento deploy:mode:set default" work for you?

Re: Switch back from develop to default

No. Then u get the message: 'Cannot switch into given mode "default" '. I switched to develop with the same command, but back seems to be a problem.

Re: Switch back from develop to default

Hi @rklerck

 

You can try this.(Do not try on production, after this you might have to run upgrade command)

 

Go to app/etc/env.php file change

 

'MAGE_MODE' => 'developer',  with following

'MAGE_MODE' => 'default',

I think this way it should work for you.(Reply back if it works for you)

 

 

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Switch back from develop to default

Essentially there are only two modes..  default is the shipping mode and then you select dev or prod. A feature not a bug

 

http://magento.stackexchange.com/questions/112523/why-cant-one-switch-back-to-the-default-mode-on-ma...