e因Distillery版本和Docker失败

时间:2019-03-14 09:15:45

标签: docker elixir phoenix-framework distillery que

我已经用Distillery设置了一个Docker环境来生成我的应用程序的发行版。

我的应用程序使用Que像这样添加一个工作器

module

但是,当调用此行时,我得到:

@Component({
  selector: 'app-selector',
  templateUrl: './template.component.html',
  styleUrls: ['./style.css'],
  providers: [YourServiceClass] <--Add your service class
})   
export class RegisterSuccessModalComponent implements OnInit {
      constructor(private service: YouServiceClass){
      }
      skipModal() {
       clearInterval(this.interval);
       this.service.doRegisterSession();

       this.dialogRef.close();
      }
    }

它在没有码头工人和酿酒厂的情况下在本地运行良好,但不确定为什么上面失败。

我也尝试按照文档中的描述为预编译的应用程序运行命令,但是没有运气。

case Que.add(SyncWorker, %{}) do {:ok, _job} -> {:ok, "Syncing..."} err -> {:error, "Error syncing: #{err}"} end

1 个答案:

答案 0 :(得分:1)

{:ex_utils, "~> 0.1.7"}添加到mix.exs依赖项中就可以了。