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.

Tags

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

Related Posts

16 Oct 2009 Holyoke's Center City Vision Plan
16 Jul 2012 How to Use Console to view the log files for your Rails App
30 Sep 2009 Don't Slouch At The Dinner Table
21 Oct 2009 Navigate Your Brain
11 Nov 2009 Because It's Usually Better Than Drinking Alone