很多方便好用的开源md解析博客应用,但是想学习下elixir,fork了这个仓,利用vercel免费部署静态网页,希望后期能坚持更新文章。
pages/posts发布文章pages/routes轨迹网页migrations数据库迁移脚本apiVercel Functions 接口assets/图片等多媒体资源lib/生成html代码output/静态网页
mix deps.get安装依赖mix compile编译iex -S mix本地运行
- 入口:
/routes/ - 地图:OpenStreetMap
- 数据来源:默认请求
/api/locations?date=YYYY-MM-DD
- 迁移脚本位于
migrations/ - 在生产环境通过 GitHub Actions 执行,仅 main 分支生效
- 需要配置 GitHub Secrets:
NEON_DATABASE_URL
- 使用 Vercel 部署
- 构建由
vercel.json驱动,产物输出到output/
NEON_DATABASE_URL:生产数据库连接串,用于 GitHub Actions 迁移
Thanks to fly.io's post on SSG using Elixir for helping me getting started.
Implements By Jorin's personal blog.
The content is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. The code is licensed under the MIT license.
