Sentry Commit Tracking - 2019-05-17 00:00:00

https://docs.sentry.io/workflow/integrations/global-integrations/#commit-tracking-4 关于 Releases https://docs.sentry.io/workflow/releases/?platform=php#create-deploy 如果配置了releases版本, 会有额外的功能 配置发布版本 在项目sdk配置 在sentry上创建 releases 版本, 关联 commits 部署是通知 sentry ruby sdk release 配置 Create Release and Associate Commits 这一步告诉sentry 这个release 有哪些commit 有两步 Organization Settings > Integrations. 配置 gitab 集成 部署的时候告诉sentry 部署了啥, 有哪些commit, 可以用 sentry-cli工具 在gitlab ci 的配置示例 官方 sentry-cli 文档 https://docs.sentry.io/workflow/releases/?platform=php#associate-commits-with-a-release sentry_commmit_tracking: stage: after_deploy image: getsentry/sentry-cli dependencies: - staging_deploy - prod_deploy script: - echo "Sentry Commit Tracking" - export SENTRY_URL=https://sentry.

Phoenix 部署记 - 2019-05-03 16:32:44

安装elixir https://elixir-lang.org/install.html#unix-and-unix-like 使用ubuntu安装 Erlang Solutions repo: wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb Run: sudo apt-get update Install the Erlang/OTP platform and all of its applications: sudo apt-get install esl-erlang Install Elixir: sudo apt-get install elixir phoenix 部署流程 官方文档 https://hexdocs.pm/phoenix/deployment.html 处理配置文件,应用secret token, config.exs, prod.exs 编译静态文件, node & brunch 生产模式下启动,distillery & mix 配置 https 配置 使用 certbot 管理 Let’s Encrypt 证书 phoenix prod.exs https 配置示例 config :books, BooksWeb.