Tag: elixir

使用phoenix_api_docs

我想用https://github.com/smoku/phoenix_api_docs来创build一个doc api,但是我遇到了一个问题,正如文档中所指出的那样,我把test_helper.exs放在了这里: PhoenixApiDocs.start ExUnit.start(formatters: [ExUnit.CLIFormatter, PhoenixApiDocs.Formatter]) 当我运行混合testing,控制台显示我这样的: 09:22:51.173 [error] GenEvent handler PhoenixApiDocs.Formatter installed in #PID<0.323.0> terminating ** (UndefinedFunctionError) function WhitespaceEx.Application.Router.__routes__/0 is undefined (module WhitespaceEx.Application.Router is not available) WhitespaceEx.Application.Router.__routes__() (phoenix_api_docs) lib/phoenix_api_docs/generator.ex:26: PhoenixApiDocs.Generator.routes_docs/2 (phoenix_api_docs) lib/phoenix_api_docs/generator.ex:12: PhoenixApiDocs.Generator.run/0 (phoenix_api_docs) lib/phoenix_api_docs/formatter.ex:22: PhoenixApiDocs.Formatter.save_blueprint_file/0 (phoenix_api_docs) lib/phoenix_api_docs/formatter.ex:9: PhoenixApiDocs.Formatter.handle_event/2 (stdlib) gen_event.erl:573: :gen_event.server_update/4 (stdlib) gen_event.erl:555: :gen_event.server_notify/4 (stdlib) gen_event.erl:296: :gen_event.handle_msg/6 (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3 Last message: {:suite_finished, […]

我正在尝试将一个凤凰应用程序部署到heroku,但得到一个NPM错误

我一直在关注官方文档推动一个凤凰1.2.0应用程序使用Elixir版本1.3.0到Heroku,但得到以下错误。 remote: Generated pages app remote: —–> Creating .profile.d with env vars remote: —–> Writing export for multi-buildpack support remote: —–> Phoenix app detected remote: remote: —–> Loading configuration and environment remote: Loading config… remote: WARNING: phoenix_static_buildpack.config wasn't found in the app remote: Using default config from Phoenix static buildpack remote: Will use the following […]

**(CaseClauseError)无条件匹配::eacces – 使用MIX_ENV = prod构build版本

我不知道把错误,仙丹,phoenixframework或nodejs放在哪里。 我正在尝试使用elxir和phoenix创build我的第一个版本。 在发布版本期间,我看到以下错误。 我只是不确定这是否是版本/依赖性问题,或者是与nodejs有关的问题,因为我唯一可以find的与eacces相关的信息与nodejs有关系。 我的configuration中是否有任何缺less的东西? 这是错误堆栈: Building release with MIX_ENV=prod. ** (CaseClauseError) no case clause matching: :eacces lib/exrm/utils/utils.ex:110: ReleaseManager.Utils.relx/5 lib/mix/tasks/release.ex:341: anonymous fn/4 in Mix.Tasks.Release.do_release/1 lib/ex_unit/capture_io.ex:146: ExUnit.CaptureIO.do_capture_io/2 lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.do_capture_io/3 lib/mix/tasks/release.ex:340: Mix.Tasks.Release.do_release/1 lib/mix/tasks/release.ex:78: Mix.Tasks.Release.do_run/1 (mix) lib/mix/task.ex:296: Mix.Task.run_task/3 (mix) lib/mix/cli.ex:58: Mix.CLI.run_task/2 我的环境如下: $ elixir -v Erlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace] Elixir 1.3.4 $ […]