Using the Environment for Runtime Configuration
Learn about the concept of runtime configuration environment.
We'll cover the following...
We'll cover the following...
The runtime configuration is information Rails cannot properly determine on its own, but that is critical for our app to be able to start up and run. This information also tends to be different in development, testing, and production. Database credentials are a great example.
Rails provides three mechanisms that all work together to manage runtime configuration:
The UNIX environment
The
config/database.yml
An encrypted YAML ...