7

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'
Raj
  • 22,346
  • 14
  • 99
  • 142
Don Pflaster
  • 1,000
  • 7
  • 22

2 Answers2

8

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.

s3cur3
  • 2,749
  • 2
  • 27
  • 42
Don Pflaster
  • 1,000
  • 7
  • 22
0

This is definitely related to mix and as Don suggests you can find the documentation for that here:

https://hexdocs.pm/mix/Mix.html

However, make sure you dig deeper on the command line by typing mix help deps as the link provided does not give an example of how to refer to a local dependency.

Its not until you view the command line help that you will see a relevant example.