palani
palani

Reputation: 4679

Rails Environment

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...

Upvotes: 1

Views: 585

Answers (1)

theIV
theIV

Reputation: 25794

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.

Upvotes: 1

Related Questions