2018年4月19日

使用distillery 实现版本的动态升级&& 动态降级

摘要: 备注: distillery 使用很棒的elixir 打包构建工具,下面演示的是升级以及降级 1. 参考项目 https://github.com/rongfengliang/phoenix-rest-demo.git 备注: 此项目已经以及配置distillery了,可以参考文档 2. 升级&& 阅读全文

posted @ 2018-04-19 21:18 荣锋亮 阅读(411) 评论(0) 推荐(0)

使用distillery 构建专业的 phoenix 项目软件包

摘要: 备注: 首先需要安装 elixir 环境 1. 基本项目说明 参考项目: https://github.com/rongfengliang/phoenix-rest-demo 2. 项目说明 备注: 主要是插件的配置 mix.exs defp deps do [ {:phoenix, "~> 1.3 阅读全文

posted @ 2018-04-19 19:13 荣锋亮 阅读(440) 评论(0) 推荐(0)

mix deps HEX_HTTP_CONCURRENCY=1 HEX_HTTP_TIMEOUT=120 timeout

摘要: mix deps.get timeout 问题: If this happens consistently, adjust your concurrency and timeout settings: HEX_HTTP_CONCURRENCY=1 HEX_HTTP_TIMEOUT=120 mix d 阅读全文

posted @ 2018-04-19 13:22 荣锋亮 阅读(500) 评论(0) 推荐(0)

elixir jenkins 集成构建方式配置

摘要: 备注: 主要问题是环境变量配置的问题,解决方法是使用软连接进行解决 1. 下载软件包 wget https://github.com/elixir-lang/elixir/releases/download/v1.6.4/Precompiled.zip 2. 配置环境变量 配置环境变量 export 阅读全文

posted @ 2018-04-19 13:10 荣锋亮 阅读(204) 评论(0) 推荐(0)

phoenix 使用activerecord模式框架ecto 访问数据库

摘要: 备注: 需要先安装mysql 以及phoenix 框架,测试使用的是docker 进行安装,具可以参考代码 1. 创建项目 mix phx.new first --database mysql 2. 修改数据库链接 config/dev.exs config :first, First.Repo, 阅读全文

posted @ 2018-04-19 10:56 荣锋亮 阅读(276) 评论(0) 推荐(0)

phoenxi elixir 框架几个方便的命令

摘要: 1. 已有命令 mix app.start # Starts all registered apps mix app.tree # Prints the application tree mix archive # Lists installed archives mix archive.build 阅读全文

posted @ 2018-04-19 10:21 荣锋亮 阅读(437) 评论(0) 推荐(1)

导航