Skip to content

Commit

Permalink
Fix broken reference to app.config in "Creating our own Mix task" doc…
Browse files Browse the repository at this point in the history
…umentation (#5695)
  • Loading branch information
jyc authored Jan 15, 2024
1 parent d184ff7 commit fb93759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/mix_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ Indeed it does.
If you want to make your new Mix task to use your application's infrastructure, you need to make sure the application is started and configure when Mix task is being executed. This is particularly useful if you need to access your database from within the Mix task. Thankfully, Mix makes it really easy for us via the `@requirements` module attribute:

```elixir
@requirements ["app.config"]
@requirements ["app.start"]

@impl Mix.Task
def run(_args) do
Expand Down

0 comments on commit fb93759

Please sign in to comment.