Assuming you want create the hudson environment.
- Create a new environment file in
config/environments/hudson.rb. You can start by cloning an existing one, for instanceconfig/environments/test.rb. - Add a new configuration block in
config/database.ymlfor your environment. - Update any other configuration file you might have under the
configfolder with your new environment, some gems create their ownymlsunder theconfigfolder. - That’s all.
Now you can start the server
rails server -e hudson
or run the console
rails console hudson
And so on.
If you are using an older version of Rails, the commands are
ruby script/server -e hudson
ruby script/console hudson