简体   繁体   English

是否可以运行私有的Hex(Erlang)依赖项管理器(如果可以,如何运行)?

[英]Is it possible to run a private Hex (Erlang) dependency manager (and if so how)?

I'm working in an Erlang environment. 我在Erlang环境中工作。 I'm looking to establish a dependency manager so that our build server can publish binaries for reuse instead of using source code dependencies. 我正在寻找建立一个依赖管理器,以便我们的构建服务器可以发布二进制文件以供重用,而不是使用源代码依赖。 The Hexpm GitHub project implies that it is possible to run it outside of the hex.pm website, but I don't see any instructions for doing so. Hexpm GitHub项目意味着可以在hex.pm网站之外运行它,但是我看不到任何说明。 Specifically, I would like my build server to be able to publish packages either directly (via the filesystem) or via rebar3, and for subsequent rebar3 builds to be able to use those published packages 具体来说,我希望我的构建服务器能够直接(通过文件系统)或通过rebar3发布软件包,并且以后的rebar3构建能够使用那些已发布的软件包

  1. Is it possible to run Hex on my own server? 是否可以在我自己的服务器上运行Hex?
  2. If so, where would I find some documentation on how to set it up (or provide the instructions directly)? 如果是这样,我在哪里可以找到有关如何进行设置的文档(或直接提供说明)?

If you look at https://github.com/hexpm/hex_web there are instructions in the README.md for both installing and running it. 如果您查看https://github.com/hexpm/hex_web ,则README.md中包含有关安装和运行它的说明。 It's a phoenix application, so it should all be relatively familiar ground if you've looked at the phoenix framework before. 这是一个phoenix应用程序,因此如果您以前看过phoenix框架,那么应该都是相对熟悉的领域。

As for getting rebar3 to work with your installation, there is documentation here as to the config values to use for setting the URLs to use for hex packages: http://www.rebar3.org/docs/hex-package-management . 至于使rebar3与您的安装一起使用,此处有关于用于设置用于十六进制软件包的URL的配置值的文档: http : //www.rebar3.org/docs/hex-package-management

HTH. HTH。

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

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