File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ defmodule Config do
64
64
## config/runtime.exs
65
65
66
66
For runtime configuration, you can use the `config/runtime.exs` file.
67
- It is executed after your Mix project is compiled and also before a
68
- release (assembled with `mix release`) starts .
67
+ It is executed right before applications start in both Mix and releases
68
+ (assembled with `mix release`).
69
69
"""
70
70
71
71
@ opts_key { __MODULE__ , :opts }
@@ -160,7 +160,10 @@ defmodule Config do
160
160
end
161
161
162
162
@ doc """
163
- Returns the environemnt this configuration file is executed on.
163
+ Returns the environment this configuration file is executed on.
164
+
165
+ In Mix projects this function returns the environment this configuration
166
+ file is executed on. In releases, the environment when `mix release` ran.
164
167
165
168
This is most often used to execute conditional code:
166
169
You can’t perform that action at this time.
0 commit comments