Hi,
my directory /home2/decornmo/public_html/babybeddingdesign/pub/static/frontend/Magento/luma/en_US/Magento_Cookie is now pointing to another directory which prevents me to switching mode from DEV to prodaction.
Solved! Go to Solution.
Hello @decornmore
Please run below commands to fix this
sudo chmod -R 0777 var/ pub/ generated/ php bin/magento setup:static-content:deploy -f en_US php bin/magento cache:flush sudo chmod -R 0777 var/ pub/ generated/
Hello @decornmore
What error you are facing please post here so can suggest you solution accordingly.
/home2/decornmo/public_html/babybeddingdesign$ php bin/magento deploy:mode:set production Enabling maintenance mode Config "dev/debug/debug_logging = 0" has been saved. Disabling maintenance mode The directory "/home2/decornmo/public_html/babybeddingdesign/pub/static/frontend/Magento/luma/en_US/Magento_Cookie" cannot be deleted Warning!rmdir(/home2/decornmo/public_html/babybeddingdesign/pub/static/frontend/Magento/luma/en_US/Magento_Cookie): Not a directory
now the site is brake: https://babybeddingdesign.com/
When you change to developer or production mode, we clear the contents of following directories:
var/cache
var/di
var/generation
var/view_preprocessed
pub/static
Exceptions:
Please run below command also sudo chmod -R 0777 var/ pub/ generated/
Refer to https://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-mode.html for more information.
@Manish Mittal wrote:Hello @decornmore
Still facing issue?
YES. magento 2 is the worst ever!
Hello @decornmore
I can understand your concern but really Magento 2 is very easy for development, please share your details I will set production mode. You can DM your details. Thanks