13 Jun 2012

Pow makes multi-site Rails apps EASY

I wrote my first blog post at work the other day. It's about how to serve multi-site Rails apps (where one Rails app serves multiple different sites that are available at different domains), and how to use Pow to make it easy.

The whole thing really stemmed from my own question on Stack Overflow, where I asked if it was possible to use Pow's .powrc file to pass session variables to Rails based on the URL being accessed. It turns out that I conceptualized the action (determining the URL being accessed) in the wrong place - it's better to do that on the Rails side, not on Pow's side. Anyway, you can read all about that here.

The end result is a description of how to use one Rails app to host multiple sites, how to switch between the different sites, and then how to automate the whole thing so you don't have to manually change the sites that Rails serves. If you're into that sort of thing, you can read it here.


common-media development pow rails ruby ruby-on-rails stack-overflow

Related Posts

17 Dec 2013 Donoku
28 Dec 2012 How to make SublimeLinter work with Ruby & RVM
09 Dec 2012 The tech behind getting Blizzalert into its third season
03 Nov 2012 Little-Corner is now a Heroku-ready Rails app
14 Oct 2012 Sip as a replacement for Pick as a replacement for Digital Color Meter in Mac OS X