I am simply listing some usefull command I have been using with my docker setup locally. Some more commands will come with time. 1. How to remove exited container. 2. How to run a command inside a container. In the …
Magento 2 uses ElasticSearch as a search engine. It can be helpfull to directly request ElasticSearch to verify the data that have been indexed. First you can get all indices. In the command below ElastichSearch is accessible on host name …
I have previously already created a post with a code example that show how to create stores programmaticaly. Here is this previous post : https://www.addeos.com/magento-2-create-a-store-storegroup-website-programmaticaly Here I present an other way of doing if using a native create processor present …
This is my first module deployed on packagist. This module once installed will offer a new command for anonymizing the database. This can be useful on a development environment when the database has been retrieved from a production environment. It …
Sometimes, on a server used as a dev environment, you might have lost the mysql root user password. This is how you can you can start mysql in safe mode with –skip-grant-table options and reset the root user password.
We can add a knockout component to add some javascript behaviour in our pages. This is how to do it step by step. 1 . In the existing template, in which you want to include the knockout component, you first …
Whenever it comes during your projects, you can need to create a new store, a new store group and a new website. You can do it programmatically. A store refers a store group to which “it is part” and a …
It’s often necessary to update database tables when working on module. We can need to add columns or update some of them. The following codes have to be in the installer files of the module you are working in. They …
When debugging, it might be necessary to add some logs.Here is a simple way to add a logging function in your code.Warning :This is not supposed to stay in your code and is only for debugging purpose.There are better and …
When debugging and application, it is very common to need to search for files on the system.You might need to search for a file named in a certain way or you might need to search for file that contain a …