Last active
August 29, 2015 14:04
-
-
Save itamarhaber/78cd454231c15cde60d1 to your computer and use it in GitHub Desktop.
Snippets accompanying Turbo Boost WordPress with a Secure Memcached Plugin blog post (http://redislabs.com/blog/turbo-boost-wordpress-with-a-secure-memcached-plugin)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Follow these steps to deploy WordPress, Memcached Cloud and the Memcached Cloud Plugin for Wordpress on Heroku. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -sS http://wordpress.org/latest.zip > wordpress.zip | |
| unzip wordpress.zip | |
| rm wordpress.zip | |
| mv wordpress/wp-config-sample.php wordpress/wp-config.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -sS http://downloads.wordpress.org/plugin/memcached-cloud.zip > memcached-cloud.zip | |
| unzip memcached-cloud.zip | |
| rm memcached-cloud.zip | |
| mv memcached-cloud/object-cache.php wordpress/wp-content/object-cache.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web: vendor/bin/heroku-php-nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "require": { | |
| "ext-memcached": "*" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd wordpress | |
| git init | |
| git add . | |
| git commit -m "initial commit” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heroku create | |
| heroku addons:add memcachedcloud |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git push heroku master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment