For use after an upgrade to verify the correct working of Magento
- Activate all logs on the server (PHP, MySQL, Magento, mail, etc)
- Check meta tags in HTML
# This can be added to your cron job to run right after Drupal's cron or combine them into a single command so | |
# that it automatically executes when the cron run completes. | |
wget -q http://www.example.com/sitemap.xml -O - | egrep -o "http://www\.example\.com[^<]+" | wget -q -i - -O /dev/null --wait 1 |
<?php | |
protected function _getProducts($productIds, $storeId, $entityId, &$lastEntityId) | |
{ | |
$products = array(); | |
$websiteId = Mage::app()->getStore($storeId)->getWebsiteId(); | |
$adapter = $this->_getReadAdapter(); | |
if ($productIds !== null) { | |
if (!is_array($productIds)) { | |
$productIds = array($productIds); |
#!/bin/sh | |
# | |
# @author Matt Korostoff <[email protected]> | |
# | |
# @internal start varnish on port 80, switch apache to 8000 | |
# | |
# @category apache | |
# | |
# @copyright Licensed under the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) |
#!/bin/sh | |
# | |
# @author Matt Korostoff <[email protected]> | |
# | |
# @internal stop varnish, restart apache on port 80 | |
# | |
# @category apache | |
# | |
# @copyright Licensed under the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) |
#!/bin/sh | |
# | |
# @author Matt Korostoff <[email protected]> | |
# | |
# @internal stop and then restart varnish | |
# | |
# @category apache | |
# | |
# @copyright Licensed under the GNU General Public License as published by the Free | |
# Software Foundation, either version 3 of the License, or (at your option) |
#!/bin/bash | |
#author Lyman Lai | |
#date 2013-12-30 | |
#source http://002.yaha.me/item/22728a58-c967-46d5-93eb-2649d684a9aa/ | |
MYSQL_USER="yourname" | |
MYSQL_HOST="localhost" | |
MYSQL_PASSWORD="yourpassword" | |
MYSQL_BIN="$(which mysql)" |
<?xml version="1.0"?> | |
<!-- license --> | |
<config> | |
<global> | |
<!-- global config --> | |
</global> | |
<frontend> | |
<events> | |
<!-- disble logs --> | |
<controller_action_predispatch> |
# NB: the line with SSH_AUT_SOCK allows SSH Agent forwarding into docker container | |
# NB: umask 002 makes all newly created files group-writable | |
docker-run-with-agent: | |
docker run -t -i \ | |
-v `pwd`/source:/srv/docker-jekyll/source/ \ | |
-v `pwd`/deploy:/srv/docker-jekyll/deploy \ | |
-v `dirname $(SSH_AUTH_SOCK)`:`dirname $(SSH_AUTH_SOCK)` -e SSH_AUTH_SOCK=$(SSH_AUTH_SOCK) \ | |
-p 4000:4000 \ | |
dergachev/docker-jekyll \ | |
/bin/bash -c "umask 002; $(cmd) $(args)" |
#!/bin/bash | |
#CONFIG | |
backupDir='/mnt/backup' | |
magentoDir='/var/www/magento/htdocs' | |
magerunPath='/usr/bin/n98-magerun.phar' | |
#NUMBER OF DAYS TO KEEP BACKUPS | |
dailyKeepDays=7 | |
weeklyKeepDays=30 |