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

mix release --env flag problem #6

Closed
typicalpixel opened this issue Jul 18, 2016 · 2 comments
Closed

mix release --env flag problem #6

typicalpixel opened this issue Jul 18, 2016 · 2 comments

Comments

@typicalpixel
Copy link

To reproduce..

mix phoenix.new sample_app
mix.exs << {:distillery, "~> 0.6"}
mix deps.get
mix release.init

Add staging environment into rel/config.exs

environment :staging do
  set dev_mode: false
  set include_erts: true
end
$ mix release --env=staging
==> Assembling release..
==> Failed to build release:
    :no_environments

If you change default_environment: :default to default_environment: :staging, it will work.

@bitwalker
Copy link
Owner

I'd just go ahead and use master for now rather than the hex package ;). Once we've worked out the kinks I'll push a new release. Anyway, this issue is now fixed.

@typicalpixel
Copy link
Author

Updated to master.

$ mix release --env=staging
** (ArgumentError) argument error
    :erlang.binary_to_atom(:default, :utf8)
    lib/distillery/tasks/release.ex:145: Mix.Tasks.Release.parse_args/1
    lib/distillery/tasks/release.ex:51: Mix.Tasks.Release.run/1
    (mix) lib/mix/task.ex:296: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:58: Mix.CLI.run_task/2

mix release is the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants