You may recall in my previous post that I was having some issues getting a Rails cookie to be viewable across multiple servers in a domain. After rolling out the changes for that and patting myself on the back, I found myself this morning unable to log in to my development instance of my Rails app.
After some thinking and rebooting, I determined that this was due to the fact that I was always forcing the domain, and in development mode the domain was completely different. I wrapped my domain setting statements in a check of the form:
if (["production"].include?(ENV["RAILS_ENV"]))
#Do the domain things from the previous post
end
This seems to work and now my local instance is fine.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment