Hi, Is it possible to create user defined Rails environment.... By default support development,staging,production,test... Other than that is it possible for user defined environment.... If yes how? ... please suggest me on this ... thanks in advance...
+1
A:
You can define whatever environments you like by adding a my_awesome_environment.rb file to config/environments
. After that, if you want to run a rake task in that environment you could do rake awesome:task RAILS_ENV=my_awesome_environment
.
And, unless it's changed recently, there is no staging environment by default. Only development, test, production. As an example of "custom" environments, Cucumber, has its own cucumber environment when you set it up for a project.
If you have a more specific question, we might be able to give a more specific answer. As it stands, this is pretty open ended.
theIV
2010-05-19 06:12:45
Thank you so much for your answer...
palani
2010-05-19 06:14:38