【问题标题】:Distillery Release doesn't find "release_ctl" in custom commandDistillery Release 在自定义命令中找不到“release_ctl”
【发布时间】:2019-12-16 21:14:45
【问题描述】:

我按照README 中的说明为我的 Distillery Release 创建了一个自定义命令,但我创建的脚本似乎找不到release_ctl。我正在使用 Distillery 2.1.1

例如下面的脚本……

#!/usr/bin/env sh

release_ctl --mfa "Elixir.IO.puts/1" --argv -- "$@"

...退出代码为1。为了更简单...

#!/usr/bin/env sh

which release_ctl

...也以1 的退出代码退出。

有什么想法吗?

【问题讨论】:

    标签: elixir distillery


    【解决方案1】:

    这是一个简单的脑残。我错过了eval。我应该一直在使用...

    #!/usr/bin/env sh
    
    release_ctl eval --mfa "Elixir.IO.puts/1" --argv -- "$@"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-21
      • 2015-05-29
      相关资源
      最近更新 更多