Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update references to distillery.init #688

Merged
merged 1 commit into from Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/introduction/installation.md
Expand Up @@ -14,13 +14,13 @@ end
## Initial configuration

Once installed, you need to run a one-time setup task which creates the configuration file Distillery
uses to define releases and environments. To do so, you just need to run the `release.init` task:
uses to define releases and environments. To do so, you just need to run the `distillery.init` task:

$ mix distillery.init


!!! tip
To get more details about the `release.init` task, or any others, use the `help` task:
To get more details about the `distillery.init` task, or any others, use the `help` task:

mix help distillery.init

Expand All @@ -31,7 +31,7 @@ here, depending on whether you want a default configuration that puts all applic
in a single release (the default), or build a release for each application individually. You can always
modify the generated config to define releases using whatever combination of applications you like.

The output of `release.init` is a config file, `rel/config.exs`, which is an Elixir script much like
The output of `distillery.init` is a config file, `rel/config.exs`, which is an Elixir script much like
`config/config.exs`, and is used to define releases and environment-specific release configuration.
An example of what those look like is below:

Expand Down
2 changes: 1 addition & 1 deletion lib/distillery/tasks/clean.ex
Expand Up @@ -61,7 +61,7 @@ defmodule Mix.Tasks.Distillery.Release.Clean do
end

false ->
Shell.error("You are missing a release config file. Run the release.init task first")
Shell.error("You are missing a release config file. Run the distillery.init task first")
System.halt(1)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/distillery/tasks/gen.appup.ex
Expand Up @@ -51,7 +51,7 @@ defmodule Mix.Tasks.Distillery.Gen.Appup do

case Config.get(opts) do
{:error, {:config, :not_found}} ->
Shell.error("You are missing a release config file. Run the release.init task first")
Shell.error("You are missing a release config file. Run the distillery.init task first")
System.halt(1)

{:error, {:config, reason}} ->
Expand Down
6 changes: 3 additions & 3 deletions lib/distillery/tasks/release.ex
Expand Up @@ -9,7 +9,7 @@ defmodule Mix.Tasks.Distillery.Release do
* `--profile` - selects both a release and environment, syntax for profiles is `name:env`

Releases and environments are defined in `rel/config.exs`, created via
`release.init`. When determining the name and environment to use, refer to the
`distillery.init`. When determining the name and environment to use, refer to the
definitions in that file if you are not sure what options are available.

* `--erl` - provide extra flags to `erl` when running the release, expects a string
Expand Down Expand Up @@ -62,7 +62,7 @@ defmodule Mix.Tasks.Distillery.Release do
# Builds a release for a specific release environment
MIX_ENV=prod mix distillery.release --env=dev

The default configuration produced by `release.init` will result in `mix distillery.release`
The default configuration produced by `distillery.init` will result in `mix distillery.release`
selecting the first release in the config file (`rel/config.exs`), and the
environment which matches the current Mix environment (i.e. the value of `MIX_ENV`).
"""
Expand Down Expand Up @@ -93,7 +93,7 @@ defmodule Mix.Tasks.Distillery.Release do

case Config.get(opts) do
{:error, {:config, :not_found}} ->
Shell.error("You are missing a release config file. Run the release.init task first")
Shell.error("You are missing a release config file. Run the distillery.init task first")
System.halt(1)

{:error, {:config, reason}} ->
Expand Down