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…
Is it possible to create user defined Rails environment…. By default support development,staging,production,test… Other
Share
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 dorake 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.