- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Switch back from develop to default
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Switch back from develop to default
Oh, sorry, you are right!
Is the "bin/magento deploy:mode:set default" work for you?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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