Cocoapods install and update
Getting Started with Cocoapods
Installation
Built with Ruby, Cocopods is installable with the default Ruby available on macOS. Using the default Ruby install will require you to use sudo when installing gems.
sudo gem install cocoapods
However, if you attempt to install or update Cocopods without Sudo you will hit a permission issue.
Investigating Swoole
Investigating Swoole.
After reading about Swoole on Medium article - Moving From Nginx+FPM to Swoole Has Increased Our PHP API Performance by 91%.
This article is in development as I work through my experiences in installing and using Swoole.
More to come
https://github.com/swoole/swoole-src
Using synonyms in Solr
Have you tried adding custom synonyms to Solr on Drupal?
How did you go?
What do you need to do to connect a custom synonym list to your Solr?
Set-up : the tools
What am I using?
Search API Synonym- https://www.drupal.org/project/search_api_synonym
Solr : 8.1
OSX Setup for Development
RayCast
Replace Spotlight with RayCast. And you can be the judge of performance. I'll flag that RayCast offers many extra features like snippets, extensions etc that you will regularly use.
Spark Email
Yep - I ditched OSX Mail client. Spark is one of the best email client I found.
Sequel Ace
Sequel Ace is my Database Management tool.
Deprecated function: trim() PHP
Updating to PHP 8.1, I found this interesting code stop...
Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in bales_preprocess() (line 162 of /var/www/{path/to/file})
What is trim(). Very simply, it removes whitespaces (if they exist) at the start or end of a string.
Mariadb hangs on start up in Docker
Running Docker and attempting to install a web proxy environment where I'm attempting to create local web set up the consist of Drupal 9 with Composer + Docker-compose + Nginx + MariaDB + PHP8.1
However, when I run the command
docker-compose up
The terminal hangs at
xdebug error
xdebug - failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 45: unknown instruction: ZEND_EXTENSION=XDEBUG.SO
How I got here
Running the following Docker command
docker-compose up
Generated this output:
Run Drupal 9 with Composer + Docker-compose + Nginx + MariaDB + PHP8.1
Running Docker
Dangerous word... I'm assuming that Docker is installed. Don't know how to check? Using Terminal (I prefer iTerm2), run the following command
docker -D info
The set-up
Go to your project directory, and create a docker folder and a “docker-compose.yml” file:
Set-up Docker for Drupal
Is Docker installed?
Check if your installation is ok and spin up Docker as well:
docker -D info
Using Docker
Now it's time to download and install docker images. Using the official images of MariaDB and Drupal. If you don’t specify the absolute URL to the image it will be searched and downloaded from Docker Hub. Tag 'latest' will be used by default.
env: php: No such file or directory
In terminal I ran a regular command - compose update. Something I've completed thousands of times previously. However, this time I received the following response:
env: php: No such file or directory