sheerun / rails4-bootstrap

My systematic way of making bullet-proof Rails 4 bootstrap template.
21 stars 1 forks source link

Assume domain in development = directory name + .dev (mailer) #34

Open sheerun opened 11 years ago

sheerun commented 11 years ago

Convention over configuration. I think it is an exception that application on development will be available under domain different than #{basename}.dev. Unfortunately it is not such predictable on production, so I decided to throw an exception when domain is not present in neither ENV nor application.yml in production environment.

sheerun commented 11 years ago

This is of course compatible with how pow names domain (directory name + .dev). Using pow domains is good because there's cookies pollution in localhost:3000, and there are problems with oauth solitions, but that's another story.