随笔分类 -  phoenix

elixir apply 结合 macro 一个方便的开发技巧
摘要:此玩法实际在Phoenix elixir 项目中使用比较多,以下是一个简单的示例 示例代码 login.ex defmodule Login do def demoapp do quote do import unquote(__MODULE__) end end def dalong do IO. 阅读全文

posted @ 2024-01-03 15:08 荣锋亮 阅读(14) 评论(0) 推荐(0) 编辑

Connecting Elixir Nodes with libcluster, locally and on Kubernetes
摘要:转自:https://www.poeticoding.com/connecting-elixir-nodes-with-libcluster-locally-and-on-kubernetes/ Transcript In the last few articles we saw how to ma 阅读全文

posted @ 2019-02-16 19:20 荣锋亮 阅读(477) 评论(0) 推荐(0) 编辑

Distributed Phoenix Chat using Redis PubSub
摘要:转自:https://www.poeticoding.com/distributed-phoenix-chat-using-redis-pubsub/ In the previous article, Create a High-Availability Kubernetes Cluster on 阅读全文

posted @ 2019-02-16 19:20 荣锋亮 阅读(529) 评论(0) 推荐(0) 编辑

Distributed Phoenix Chat with PubSub PG2 adapter
摘要:转自:https://www.poeticoding.com/distributed-phoenix-chat-with-pubsub-pg2-adapter/ In this article we’ll see how to cluster the Phoenix Chat nodes, usin 阅读全文

posted @ 2019-02-16 19:19 荣锋亮 阅读(555) 评论(0) 推荐(0) 编辑

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

posted @ 2018-04-19 21:18 荣锋亮 阅读(399) 评论(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 荣锋亮 阅读(432) 评论(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 荣锋亮 阅读(267) 评论(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 荣锋亮 阅读(417) 评论(0) 推荐(1) 编辑

phoenix elixir 框架简单试用
摘要:备注: 官方提供的脚手架工具,我们可以直接使用,生成代码,同时需要nodejs 环境配置(比较简单,参考 相关资料即可) 1. 安装脚手架 mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_ 阅读全文

posted @ 2018-04-18 11:54 荣锋亮 阅读(2419) 评论(0) 推荐(1) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示