Uploading directly to Amazon S3 from a Rails application

The use cases for Superhug are heavy on uploading and downloading large(ish) files. Rails itself isn’t so well suited to this sort of task, and it’s best to keep state away from application servers wherever possible. We chose to use Amazon S3 and CloudFront to bypass Rails for all of the uploading, downloading and image processing grunt work. This is a rundown of the approach we took.
Continue reading

Posted in AWS, Ruby | Tagged , , | 16 Comments

Sell your WordPress, Magento, Joomla themes on Superhug

Camel Punch‘s latest client project, Superhug, went into live beta recently. It’s a Rails-driven marketplace for Drupal, Expression Engine, Joomla, Magento, Tumblr and WordPress designs, as well as HTML and PSD templates.
Continue reading

Posted in Releases | Tagged , , , , , | Leave a comment

Using Ruby to get a duplicate WordPress database

In almost all of my Rails projects, I write a Rake task to take a dump of the remote mysql database and copy it locally. I decided to do this for my WordPress installation as well, as I tend to test things on my local copy first.
Continue reading

Posted in PHP | Tagged , | Leave a comment

WordPress installation

After years of writing and rewriting various blogging platforms without telling anyone, in various languages including Python, Ruby and PHP, and obsessing over various database backends such as Berkeley DB XML, I’ve decided to just stick WordPress on a subdomain. I lose. But I win.
Continue reading

Posted in PHP, Ruby | Tagged , | Leave a comment