Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
/* | |
* Copyright (c) 2016 Martin Donath | |
* | |
* All rights reserved. No part of this computer program(s) may be used, | |
* reproduced, stored in any retrieval system, or transmitted, in any form or | |
* by any means, electronic, mechanical, photocopying, recording, or otherwise | |
* without prior written permission. | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. |
User-agent: * | |
# Directories | |
Disallow: /app/ | |
Disallow: /bin/ | |
Disallow: /dev/ | |
Disallow: /lib/ | |
Disallow: /phpserver/ | |
Disallow: /pkginfo/ | |
Disallow: /report/ |
This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.
This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.
If you experience any difficulties or have any feedback, leave a comment. 🐬
Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.
#!/bin/sh | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: 234 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// app/code/local/SW/Core/Model/Design/Package.php | |
class SW_Core_Model_Design_Package extends Mage_Core_Model_Design_Package | |
{ | |
/** | |
* Get the timestamp of the newest file | |
* | |
* @param array $files | |
* @return int $timeStamp |
delimiter ;; | |
drop procedure if exists build_catalog;; | |
create procedure build_catalog(IN categories INT, IN products INT) | |
begin | |
SET @category_count = 1; | |
SET @CATNAMEPREFIX = "Category "; | |
SET @CATURLKEYPREFIX = "cat-"; | |
SET @CATURLPATHPREFIX = "catpath-"; | |
SET @ROOTCATEGORY = 2; | |
SET @INCLUDEINMENU = 1; |