Erlang/Elixir UPYUN 支持 Elixir hex.pm 国内镜像
最近 Elixir 语言使用者不少,Elixir 使用 Hex 管理依赖,但是这个站点的数据默认是放在 S3 上面,在国内使用会比较吃力,Elixir 作为一门优秀的语言,我们觉得有必要反馈给社区一些资源,于是乎最近我们向老大申请了 https://hexpm.upyun.com 作为 https://repo.hex.pm 的国内镜像站点,各位可以放心使用我们的资源,使用方法请参见 https://hex.pm/docs/mirrors 官方说明,或者配置下列环境变量:
export HEX_MIRROR="https://hexpm.upyun.com"
export HEX_CDN="https://hexpm.upyun.com"
如果遇到下面问题:
** (Mix) Could not verify authenticity of fetched registry file. This may happen because a proxy or some entity is interfering with the download or because you don't have a public key to verify the registry.
You may try again later or check if a new public key has been released in our public keys page: https://hex.pm/docs/public_keys
请先运行 mix local.hex
, 参见 #reply16
👍🏼 虽然我一直都用 jsDelivr,国内访问挺好的
赞!(PS: 妈蛋,国内什么都要镜像加速)
👍
UPYUN 也在用Elixir吧
支持,提示下,如果遇到下面这个错误,先运行下 mix hex.local
** (Mix) Could not verify authenticity of fetched registry file. This may happen because a proxy or some entity is interfering with the download or because you don't have a public key to verify the registry.
You may try again later or check if a new public key has been released in our public keys page: https://hex.pm/docs/public_keys
#14楼 @linjunpop 谢谢
#15楼 @lidashuang 我们线上的存储系统使用了 Erlang, 存储和 CDN 中间的接入层使用了 Elixir
赞!我自己架的镜像终于可以退休了!@jsvisa 如果有计划长期更新的话,可以提个 pr 更新到 https://hex.pm/docs/mirrors 。最下面那个 China 的是我搞的,直接替换掉就好了!
@falood 已经给官方提了 PR,已经合并但还没更新到线上,你们那个先留着,或者你们另外提个 PR 去除吧😄
使用这个源后,经常遇到 edeliver
安装不上的问题。卡在这里:
Package cf-0.2.1 not found. Fetching registry updates and trying again
目前使用上了,比一个月前好多了,整体rebar3编译都ok 非常感谢
hexpm/hex今天更新到了0.16.0,原HEX_MIRROR及mirror_url等写法已经不支持了。 可用mix hex.repo方式改变仓库源。写法详见https://hex.pm/docs/tasks#hex_repo, 简单的方式可以直接将hexpm地址改为upyun,如下
mix hex.repo set url hexpm https://hexpm.upyun.com
34#更新:hex最新版本到了hex-0.17.1,设置upyun的命令有所改变:
mix hex.repo set hexpm --url https://hexpm.upyun.com
@jsvisa 想搭建一个公司级镜像站点,该怎么做呢?
https://s3.amazonaws.com/s3.hex.pm/tarballs 对应我们这镜像的地址是啥呀
我这边有代码写死这种地址,我想换成国内的地址