Drupal 9 to 10 upgrade an example of the actual steps taken
Continuing on from the Drupal 9 to Drupal 10 upgrade outline written earlier... Upgrading Drupal 9 to Drupal 10. However, the point of difference is this article works through the actual action steps of the upgrade.
Planning and testing is critical for the Drupal to version 10 process to work successfully. As some of the environments that I work in are deployed via CD/CI pipelines.
Could not delete /var/www/html/content/vendor/composer/
Attempting to run a composer update command, you know the one used regularly
composer update
I ran into a 'could not delete' response
error: pathspec did not match any file(s) known to git
Post creating a new branch in the repo, next step was to run the checkout command locally. On my local environment I ran the following command
git checkout {branch-name}
However, the response was
error: pathspec '{branch-name}' did not match any file(s) known to git
sudo docker ps and exec -it
Working in an AWS ec2 environment, my goal is to access the server via terminal.
I initially work to get the instance ID. With this ID, I'm able to connect to the server. When first accessing the environment on the server the steps I take are:
sudo docker ps
ps - refers to the 'process status'
Response
Drupal set the private folder
How to set the Private file path in Drupal using the following steps:
- Create a private folder in the web root
- Add a .htaccess file to the private folder
- Update the settings.php file
homebrew for speed tests
Using Homebrew for speed tests...
I'm using Speediest CLI - for more details go to https://github.com/sivel/speedtest-cli
To install speedtest CLI is is quick by running the following
brew install speedtest-cli
I had a few brew updates required as you'll see by the response below
How to create list of files that is recursive and output as txt file?
This issue
I have a folder with about 10,000 files in it. I want to scan through the directories and isolate files that are different from what sits in the database. How do you generate a list of file names of all the files into a single txt file?
how to solve - git response 'not something we can merge'
I'm in an environment where the default branch is staging and I'm attempting to run a git merge. However, in actioning this command, I'm been greeted with the following response 'not something we can merge'
❯ git merge origin/{branch}
merge: origin/{branch} - not something we can merge
To resolve this, first I attempted to do a git checkout to the branch
Count the number of files in a directory including recursively
How to count the number of files in a directory. At some point you'll have a directory or directories that you need to know the number of files in them. On Linux, the list command (ls) is piped with the wc -l command.
ls | wc -l
This command works great if all the files are located in one directory. What about if you have multiple directories. Then you will need to use the find command piped with the wc command
mysql dump FLUSH TABLES access denied
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4 to 8.1. However, when I've attempted to export the MySQL database using the command
drush sql-dump --extra-dump=--no-tablespaces --result-file=../sql/db-2023-02-25.sql
I seeing the following response