我无法创建我的凤凰项目.会喜欢一些关于如何修复它的建议.
设置细节:
我正在关注Phoenix Up and Running制作应用程序.
mix phx.new hello
cd hello
mix ecto.create
Run Code Online (Sandbox Code Playgroud)
最后一个命令给了我:
== Compilation error in file lib/hello/repo.ex ==
** (ArgumentError) adapter Ecto.Adapters.Postgres was not compiled, ensure it is correct and it is included as a project dependency
lib/ecto/repo/supervisor.ex:71: Ecto.Repo.Supervisor.compile_config/2
lib/hello/repo.ex:2: (module)
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:206: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/6
Run Code Online (Sandbox Code Playgroud)
我安装了postgres.我有postgres超级用户.
我正在运行 MacOS 10.14.1(MacOS 的新手),我无法运行psql通过 安装的命令brew,我收到以下错误,希望得到一些帮助:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)
我尝试过的解决方案
brew services start 服务已经在运行brew services stop postgresql, brew services start postgresql 还是一样的错误brew remove postgres, brew install postgres, psql 还是一样的错误brew unlink postgresql && brew link postgresql 还是一样的错误rm -f /usr/local/var/postgres/postmaster.pid我的/usr/local/var/不包含postgres/文件夹还有一件事要注意,当brew install postgres我收到警告时:
Warning: The post-install step …Run Code Online (Sandbox Code Playgroud) 我有一个通过 Gitlab 部署的节点应用程序。我正在使用 docker image node:12.8.0。
最近部署失败,出现以下错误
$ dpl --provider=heroku --app=$HEROKU_DEVELOPMENT_APP --api-key=$HEROKU_API_KEY --skip-cleanup
Installing deploy dependencies
ERROR: Error installing dpl-heroku:
faraday requires Ruby version >= 2.4.
Successfully installed multipart-post-2.1.1
Successfully installed ruby2_keywords-0.0.2
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- dpl/provider/heroku (LoadError)
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /var/lib/gems/2.3.0/gems/dpl-1.10.15/lib/dpl/provider.rb:93:in `rescue in block in new'
from /var/lib/gems/2.3.0/gems/dpl-1.10.15/lib/dpl/provider.rb:68:in `block in new'
from /var/lib/gems/2.3.0/gems/dpl-1.10.15/lib/dpl/cli.rb:41:in `fold'
from /var/lib/gems/2.3.0/gems/dpl-1.10.15/lib/dpl/provider.rb:67:in `new'
from /var/lib/gems/2.3.0/gems/dpl-1.10.15/lib/dpl/cli.rb:31:in `run'
from /var/lib/gems/2.3.0/gems/dpl-1.10.15/lib/dpl/cli.rb:7:in `run'
from /var/lib/gems/2.3.0/gems/dpl-1.10.15/bin/dpl:5:in `'
from /usr/local/bin/dpl:22:in `load'
from /usr/local/bin/dpl:22:in `'
Running after_script …Run Code Online (Sandbox Code Playgroud)