Blogs

drush examples for dumping a database

In a second part to the drush examples post last month, I thought I should also share the DB commands I have been using to ensure they don't get lost either.

This time I am using drush manual regarding the the drush configuration options (https://www.drush.org/12.x/using-drush-configuration/#non-options):

drush examples for moving files around

As I move more sites from D7 to D9 and D10 I have been playing more and more with some drush commands to move the DBs and files around I thought I would capture some here to ensure they don't get lost.

To ensure only the necessary files are copied without any extraneous ones I found this in the drush manual (https://www.drush.org/12.x/site-aliases/):

Great Mistakes in Technical Leadership – reprint of a reprint

Second Reprinting of: Mroodles – Great Mistakes in Technical Leadership – reprint

Great Mistakes in Technical Leadership - 11 Jun 2006

http://www.mroodles.com/wordpress/hacking/great-mistakes-in-technical-le...

but that site is now gone. I found this text in Wayback machine and took the liberty of posting it here with some grammar fixes (American English to English).

Originally: Hacknot – Great Mistakes in Technical Leadership

Drupalcon Portland watchlist

Having missed another drupalcon, I am eagerly awaiting the publishing of the videos that I missed online, to watch at my leisure.

In the meantime, I thought I would revisit and catch up with the videos I didn't get around to watching from drupalcon Portland 2022.
The schedule is here:
https://events.drupal.org/portland2022/schedule/2022-04-25

But the videos are available on the Drupal Association Youtube channel.

How to add a fork to a composer Project

There are occasions when a project is needed that isn’t yet ready for Drupal 8 or 9. Hopefully, it is only missing a couple of configuration options like the the new core_version_requirement key in *.info.yml, but sometimes it needs more work.

Removing files from the repo after an update to use composer

Best practice says we shouldn’t be committing vendor, core or contrib projects to a repo, (see https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-...)

As a result I have had to go through the process of removing the files on several sites.
This can be done by running:

Event dispatchers and Event subscribers for Drupal 8

I did a little exploration into Event dispatchers and Event subscribers for Drupal 8 and found some helpful articles which I am saving here for future reference:

Commerce Cart abandonment

I watched a Webinar recently and while its not in my direct area of interest, it did raise some interesting points
(Webinar availble at: https://magento.com/resources/optimize-your-checkout-with-magento-commerce)

Cart abandonment rate is:
// Bariliance, 2016 and 2015 cart abandonment data
(https://www.barilliance.com/shopping-cart-abandonment-guide/)

Check a mounted disk and fix errors on Amazon EC2

When I logged into my EC2 instance, I had the warning:

*** /dev/xvda1 should be checked for errors ***

We can't fsck /dev/xvda1 because it is mounted and in use, so I need to check this disk on startup as it is mounted, however there are a couple of things that need to be done first before you can do this on my Ubuntu EC2 instance.

First I need to enable FSCKFIX, which is off by default

sudo nano /etc/default/rcS

find the line:
#FSCKFIX=no

And change it to:

FSCKFIX=yes

Updated D8 Boldy Theme Live Preview setup instructions

CAVEAT EMPTOR
This is still a very rough start to the D8 setup instructions, more will be added as I progress and full english will be added rather than the rough notes that exist at present.
Also as I am just starting out on this process, this page will be updated as I find modules that are not fully available or as I add functionality.
Please be aware that the D8 Twig version of the Boldy theme is on its way.

Pages

Subscribe to RSS - blogs