Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use a local repository in Elixir?

When including external repositories in your Phoenix Framework project, it is possible to pass a Github option:

 {:example, "~> 0.9.9", github: "somewhere/example"}

Is there an option to include a local repository, similar to the Rails convention in the Gemfile?

 gem 'somewhere', '0.0.2', :path => 'some/local/directory'
like image 245
Don Pflaster Avatar asked Aug 28 '15 21:08

Don Pflaster


1 Answers

The parameter is just that, "path".

{:example, "~> 0.9.9", path: "some/local/directory"}

More of a Mix.Project question than a Phoenix question. See the mix deps docs for more info.

like image 107
Don Pflaster Avatar answered Sep 21 '22 02:09

Don Pflaster