Browsed by
Month: October 2020

Magento 2 – Tips

Magento 2 – Tips

Tip 1: Dump the database from Magento Cloud using N98 STEP 1: magento-cloud tunnel:single -p {CLOUD_PROJECT_CODE} -e {CLOUD_ENVIRONMENT_CODE} -r database STEP 2: Update the Project’s database configuration STEP 3: Enjoy: php7.1 n98-magerun2.phar db:dump –strip=”reporting_system_updates @log @stripped” Please follow and like us:

Nginx – Different storeviews or websites in subfolders

Nginx – Different storeviews or websites in subfolders

A client wants his multistore shop to be set up like this: http://www.domain1.org/en/ -> store view 2 http://www.domain1.org/de/ -> store view 3 http://www.domain1.org/fr/ -> store view 4 http://www.domain1.org/it/ -> store view 5 In this post, I will show you how to do this thing by using Nginx configuration. Step 1: add the configuration mapping to Nginx’s conf file. /etc/nginx/config.d/mapping_store.conf map $request_uri $MAGE_RUN_CODE { default en_US; ~^/us/ en_US; #en_US is Store View 2’s code ~^/de/ de_DE; ~^/fr/ fr_FR; ~^/it/ it_IT; }…

Read More Read More