Monday, February 17, 2014

Update node.js on Mac OS X

After installing node.js on Mac OS X using

 brew install node  


Do:

 brew update  
 brew upgrade node  
 npm update npm -g  
 node --version  

Sunday, February 16, 2014

Adding zlib to Wordpress on Heroku

You may need zlib in Heroku for Wordpress themes. Assuming you have compiled zlib.so already:

In the Wordpress repo directory,

 mkdir -p lib/php  
 mv zlib.so lib/php/  
 echo "extension = /app/www/lib/php/zlib.so" > php.ini  
 git add .  
 git push heroku production:master

Compiled on Heroku from source: https://s3.amazonaws.com/codesilo/zlib.so