# Rails environments

**URL:** <https://www.ruby-forum.com/t/rails-environments/183872>\
**Category:** Rails\
**Created:** [February 22, 2010, 7:16am UTC](https://www.ruby-forum.com/t/rails-environments/183872 "2010-02-22T07:16:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [February 22, 2010, 7:16am UTC](https://www.ruby-forum.com/t/rails-environments/183872/1 "2010-02-22T07:16:04Z")

</div>

Hi  
I have a very basic question to ask. ut I dont know how to handle it  
properly.Please help. I am working in a team. So I am strting the  
application in my machine in development mode. Now my manager asked me  
to give it for testing. So should I start the application in my machine  
in test environment in another port say localhost:3001 and asks the  
testers to access my machine? Is the RAILS\_ENV=test has that meaning too  
or is it only for my unit and functional tests? If not another pattern  
comes in to my mind is to deploy this same application another machine  
on the network and run it on test mode there?

```
 In anyway I am totally confused. For example the mail sending etc I

```

am current setup on environments/development.rb like  
config.action\_mailer.default\_url\_options = { :host =\>  
“192.168.0.100:3000” }

```
 But if I setup application for the testers in the first way i

```

suggested they can’t check mail functionaly etc.  
So my question is is there any standard procedure for all these?  
Please help.  
Please provide some additional readings(urls,…)

Thanks  
Tom

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [February 22, 2010, 10:05am UTC](https://www.ruby-forum.com/t/rails-environments/183872/2 "2010-02-22T10:05:46Z")

</div>

> RAILS\_ENV=test has that meaning too or is it only for my unit and functional tests

Yes, the test environment is for automated tests. The test team should  
have the application in production mode.
