Running on a local machine

suggest change

Normally when rails environment is run by typing. This just runs the default environment which is usually development

rails s

The specific environment can be selected by using the flag -e for example:

rails s -e test

Which will run the test environment.

The default environment can be changed in terminal by editing the ~/.bashrc file, and adding the following line:

export RAILS_ENV=production in your

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Change a default Rails application environment:
*Running on a local machine

Table Of Contents
55CSV
67Change a default Rails application environment