Run the following command
sed -i '1,200d' file_name.sql
Run the following command
sed -i '1,200d' file_name.sql
Run the following command
php bin/magento deploy:mode:show
Just set is_used_in_grid as false.
You can use the below command to extract sql.gz file.
gzip -d example.sql.gz
C:\Windows\System32\drivers\etc
Run the following command to increase the root partition
lvextend -L+15G /dev/mapper/centos-root && xfs_growfs -d /dev/mapper/centos-root
map $http_host $MAGE_RUN_CODE { in.phpcodez.com default; } map $http_host $MAGE_RUN_TYPE { in.phpcodez.com store; } server { listen 80; server_name in.phpcodez.com; set $MAGE_ROOT /usr/share/nginx/html/phpcodez; set $MAGE_MODE developer; include /usr/share/nginx/html/phpcodez/nginx.conf.sample; }
Make sure that URL ends with a /(slash) .
example : http://phpcodez.com/
Observers are the particular classes that control the general behavior, performance, or change in the business logic of the store. They are executed whenever a specific event for which they were set to listen is triggered.
To create an observer in Magento 2, you must place your class file under the ModuleRoot/Observer
directory. The observer class file should use Magento\Framework\Event\Observer
and Magento\Framework\Event\ObserverInterface
class and define the executive function.