我想從phoenix中的ecto協會生成JSON。 這是我的聯想: defmodule Blog.Post do
use Ecto.Model
schema "posts" do
field :title, :string
field :body, :string
has_many :comments, Blog.Comment
end
我正在嘗試使用exrm配置我的Elixir/Phoenix應用程序。這工作正常,但我無法讀取config/config.exs中定義的某些配置條目,當通過「binary」版本啓動應用程序時。 我config/config.exs鎖像這樣(我刪除了一些清晰線): use Mix.Config
config :phoenix, RestProxy.Router,
port: System