Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itamarhaber/78cd454231c15cde60d1 to your computer and use it in GitHub Desktop.
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)
Follow these steps to deploy WordPress, Memcached Cloud and the Memcached Cloud Plugin for Wordpress on Heroku.
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
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
web: vendor/bin/heroku-php-nginx
{
"require": {
"ext-memcached": "*"
}
}
cd wordpress
git init
git add .
git commit -m "initial commit”
heroku create
heroku addons:add memcachedcloud
git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment