craft-scripts | Shell scripts to manage database backups | Script Programming library
kandi X-RAY | craft-scripts Summary
kandi X-RAY | craft-scripts Summary
There are several scripts included in craft-scripts, each of which perform different functions. They all use a shared .env.sh to function. This .env.sh should be created on each environment where you wish to run the craft-scripts, and it should be excluded from your git repo via .gitignore. Craft-Scripts works with both Craft 2.x & Craft 3.x, and has built-in support for both mysql as well as postgres databases.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of craft-scripts
craft-scripts Key Features
craft-scripts Examples and Code Snippets
Community Discussions
Trending Discussions on craft-scripts
QUESTION
I am running the following command to update craft cms:
...ANSWER
Answered 2021-Aug-11 at 22:28So I was able to figure out the issue. I had inherited the project and someone had added 'bootstrap' => ['debug']
to the config/php.app file, to enable the Yii debug toolbar. This debug module is calling addRules() on the UrlManager object, and craft code had set the rules field of this object to null instead of [ ]. When addRules() was called, array_merge() threw an exception on the null value (as it was expecting [ ] instead). This code path can be avoided entirely by removing the debug module.
TLDR; remove 'debug' module from config/php.app if you get an array_merge() exception in UrlManager.php when updating to craft 3.5.12.1 or greater.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install craft-scripts
Duplicate the example.env.sh file, and rename it to .env.sh
Add .env.sh to your .gitignore file
Then open up the .env.sh file into your favorite editor, and replace REPLACE_ME with the appropriate settings.
Normally when you ssh into a remote server (as some of the craft-scripts do), you have to enter your password. Best practices from a security POV is to not allow for password-based logins, but instead use SSH Keys. The day in, day out benefit of setting up SSH Keys is that you never have to enter your password again, so it allows for automated execution of the various craft-scripts. Use the excellent How To Set Up SSH Keys artice as a guide for setting up your SSH keys.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page