Use this git command to generate a summary of work done for any given day:
# Get today's commits summary
git log --since="$(date +%Y-%m-%d) 00:00:00" --until="$(date +%Y-%m-%d) 23:59:59" --oneline --author="$(git config user.name)"
cd ~/code/site/ | |
git status | |
git pull origin master | |
git log --oneline -10 | |
git checkout -b prestashop-1.7.8-upgrade | |
wget https://github.com/PrestaShop/PrestaShop/releases/download/1.7.8.11/prestashop_1.7.8.11.zip | |
unzip prestashop_1.7.8.11.zip | |
unzip prestashop.zip -d prestashop_1.7.8.11/ | |
mkdir prestashop_1.7.8.11 | |
unzip prestashop.zip -d prestashop_1.7.8.11/ |
On branch prestashop-1.7.8-upgrade | |
Changes not staged for commit: | |
(use "git add/rm <file>..." to update what will be committed) | |
(use "git restore <file>..." to discard changes in working directory) | |
modified: app/AppCache.php | |
modified: app/AppKernel.php | |
modified: app/Resources/all_languages.json | |
modified: app/Resources/geoip/index.php | |
modified: app/Resources/legacy-to-standard-locales.json | |
modified: app/Resources/translations/default/AdminActions.xlf |
app/AppCache.php | 15 +- | |
app/AppKernel.php | 100 +- | |
app/Resources/all_languages.json | 50 +- | |
app/Resources/geoip/index.php | 12 +- | |
app/Resources/legacy-to-standard-locales.json | 3 + | |
.../translations/default/AdminActions.xlf | 663 +- | |
.../default/AdminAdvparametersFeature.xlf | 1340 +-- | |
.../default/AdminAdvparametersHelp.xlf | 489 +- | |
.../default/AdminAdvparametersNotification.xlf | 382 +- | |
.../translations/default/AdminCatalogFeature.xlf | 1469 ++-- |
This upgrade plan addresses backup issues caused by over 1 million entries in the ps_guest
table. The manual upgrade approach using Git provides better control and avoids the problematic auto-upgrade process.
ssh://[email protected]/site/site.git
/kanri/
(custom renamed from /admin/
)# Where the Backup Setting Actually Lives | |
# In v6.x, autoupgrade doesn’t read a config.json — instead it stores its settings in: | |
cd /root/build/modules/autoupgrade/config/ | |
# specifically in a file like: | |
# config.inc.php | |
#Inside you’ll see constants such as: | |
define('PS_AUTOUP_BACKUP', '1'); | |
define('PS_AUTOUP_KEEP_IMAGES', '1'); | |
# Two Ways to Really Bypass Backup in Your Setup | |
Option 1 — Patch BackupDb.php (cleanest) |
domainnet@tb-xxxx-linssh059:/data/sites/web/domainnet/subsites/staging.domain.net# wp search-replace 'https://www.domain.net' 'https://staging.domain.net' --skip-columns=guid --dry-run | |
PHP Warning: Constant ABSPATH already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1334) : eval()'d code on line 66 | |
Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>instagram-feed</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /data/sites/web/domainnet/subsites/staging.domain.net/wp-includes/functions.php on line 6114 | |
Warning: Undefined array key "widgets_args" in /data/sites/web/domainnet/ |
<?php | |
/** | |
* Register custom block pattern categories and patterns. | |
*/ | |
add_action('init', function () { | |
// First register the block type | |
register_block_type('nynaeve/website-packages', [ | |
'render_callback' => function ($attributes, $content) { | |
return $content; // Simply return the content as is | |
}, |
#!/bin/bash | |
rsync -av --delete \ | |
--exclude 'node_modules/' \ | |
--exclude 'vendor/' \ | |
--exclude '.git/' \ | |
--exclude '.github/' \ | |
--exclude '.DS_Store' \ | |
~/code/site.com/site/web/app/themes/theme-name/ \ | |
~/code/site/ |