Forum: Ruby on Rails RE: How to change IIS environment

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60e38de043848f82392062088f191213?d=identicon&s=25 HOGANBP (Guest)
on 2005-11-12 12:49
(Received via mailing list)
You're kinda stuck because of the way IIS works.

To set the environment, just hard code it in environment.rb where it
says to set it.... It says something about "only set this if you can't
set it from your server."

I've successfully set this up on IIS with virtual directories but I have
to hack routes.rb and environment.rb in order to make it work properly.
It seems to run pretty fast....

http://wiki.rubyonrails.com/rails/pages/HowtoSetupIIS

And I'm praying to the Rails gods that they'll come up with a fix for
this:

http://dev.rubyonrails.com/ticket/2602
Cb610750ee94ca103aef4b2dc7b1b768?d=identicon&s=25 nicholas.stuart (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Actually, I was able to set the RAILS_ENV variable under the system
variables and it seems to do the trick. Production log is produced and
the production database setting is used.

The one thing to note is that trying to run the console still tries to
use the development  settings and the looking at ENV['RAILS_ENV']
shows development.

I do have another problem though. I can't seem to get my "" route to
work. IIS keeps complaining that it wont display the directory
contents. I think I need to add something to the re-write rules for
it, but not sure what.
This topic is locked and can not be replied to.