Skip to content

Commit

Permalink
Fix #585 - Do not overwrite vm.args via release.init
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Nov 6, 2018
1 parent 6f395b6 commit b3ea22a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/distillery/tasks/init.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ defmodule Mix.Tasks.Release.Init do
File.write!(Path.join("rel", "config.exs"), config)

# Generate vm.args
{:ok, vm} = Utils.template("vm.args.default", bindings)
File.write!(Path.join("rel", "vm.args"), vm)
vm_args = Path.join("rel", "vm.args")
unless File.exists?(vm_args) do
{:ok, vm} = Utils.template("vm.args.default", bindings)
File.write!(vm_args, vm)
end

IO.puts(
IO.ANSI.cyan() <>
Expand Down

0 comments on commit b3ea22a

Please sign in to comment.