phoenix初步

更新系统包管理工具hex

mix local.hex

安装phoenix,phoenix是elixir的web框架

mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

elixir的shell

iex
  :erlang.system_info(:otp_release)

erl
  erlang:system_info(otp_release).

创建项目

mix phx.new web
mix phx.new no_db_web --no-brunch --no-ecto
mix deps.get
mix phx.server

vscode的调试配置,需要ElixirLS插件

      "name": "debug",
      "request": "launch",
      "task": "phx.server",
原文地址:https://www.cnblogs.com/ziyouchutuwenwu/p/5708658.html