简体   繁体   English

依赖项修改未反映在应用程序中

[英]Dependency modifications doesn't reflect in app

I am new to Elixir/Phoenix. 我是Elixir /凤凰城的新手。 I am trying to fix https://github.com/smpallen99/coherence/issues/315 issue. 我正在尝试修复https://github.com/smpallen99/coherence/issues/315问题。 So I have added coherence in mix.exs as path . 因此,我在mix.exs添加了coherence作为path After I making changes in coherence it is not reflecting immediately in Phoenix app. 在更改coherence它不会立即反映在Phoenix应用程序中。 How to fix this issue? 如何解决这个问题?

Hack-trick that worked for me for live-reload in Phoenix application (cold restart worked for me without any explicit workarounds): in config/dev.exs add the path to your external application explicitly into watched paths ( live_reload key under config :my_app, MyApp.Endpoint ): 在Phoenix应用程序中用于实时重新加载的Hack-trick(冷重启对我有效,没有任何明确的解决方法):在config/dev.exs ,将外部应用程序的路径显式添加到受监视的路径中( config :my_app, MyApp.Endpoint下的live_reload键) config :my_app, MyApp.Endpoint ):

config :my_app, MyApp.Endpoint,
  live_reload: [
    patterns: [
      ~r{../coherence/lib/.*(ex)$}, # THIS

      ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
      ~r{priv/gettext/.*(po)$},
      ~r{lib/ammotion_web/views/.*(ex)$},
      ~r{lib/ammotion_web/templates/.*(eex)$}
    ]
  ]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM