Enable Magento2 Command-Line Interface (CLI) on Linux

For both development, ongoing management and scheduled tasks Magento’s Command Line Interface is able to do it all.

To enable CLI for Magento to you’ll need to make sure the file /bin/magento is executable by the system.

If you’re on the server SSH into the root of your Magneto install and run the command

chmod +x bin/magento

If you’re on desktop simply locate the file in your file explorer, right click and set the “Allow executing file as program” checkbox on the Permissions tab.

Ordering assets in Magento 2

This one will come in useful until Magento 2 sorts itself out.

For some reason, Magento 2 has no way to order assets out of the box. There is now an extension which allows you to set an order attribute in the CSS tags of the layout XML files and layout updates in Admin Panel.

Github: Mage2 Ordered Assets by Quickshiftin

Example

Before

<head>
   <css src="css/app.css" />
</head>

After

<head>
   <css src="css/app.css" order="100" />
</head>

Magento 2.0: An introduction to what has changed

At long last Magento 2.0 has finally be released into the wild. These are a few of the reasons merchants and developers should consider moving to Magento 2.

Full Page Caching

Magento 2 introduces full page caching into the community edition of Magento. This means that rather than your web server having to do many slow database queries to render pages and pull blocks together it will first checked for a static/cached version of the page being requested. Load times change from 5-10 seconds for non-cached pages to around 1-2 seconds. Awesome.

Better Database Performance

Magento 2 comes ready and able to cope with the larger scale websites that often caused problems before. Rather than one single database Magento 2.0 will allow stores to separate their tables into separate databases. For example a single database can have sole responsibility for content pages, products and categories while maintaining a separate database for users to maintain their cart data. This promise much better performance and reduce the time the system waits for queries to be carried out on a single database.

System Clean out

Magento 2 has been pretty much built from the ground-up this means old legacy code is no longer in the mix and all those old extensions can be cleared out. The new system will not be compatible with old Magento <1.9 extensions and themes, providing an opportunity to properly optimise extensions and rethink implementations when moving to magento 2.0.

Magento 2


I’ve been specialising in Magento Northern Ireland for over six years working for companies all across the UK and Ireland. If you need help with your ecommerce set-up, let me know.