nano2007
No resources generated with ash_postgres.gen.resources
I am just getting started with Elixir, Ash etc., so most likely I am missing some configuration or step here. I tried to go through the docs and code but have no luck so far.
When trying to generate a resource(s) from an existing postgres db/schema, I get the following output:
mix ash_postgres.gen.resources CfncApp.App --tables auditlog --snapshots-only
Compiling 1 file (.ex)
Generated cfnc_app app
Igniter:
No proposed content changes!
Igniter - Warnings:
* No ecto repos configured.
But I have the following configuration:
config :cfnc_app, ecto_repos: [CfncApp.Repo]
What am I missing or doing wrong?
Most Liked
nano2007
Awesome! That worked @zachdaniel
.
I am pretty sure I did “mix compile” before the gen.resources step. Is there a difference?
Sorry if these are noob questions. It is a lot to digest for someone coming from a Java/C++ world ![]()
nano2007
Never mind @zachdaniel, I think there was some misconfiguration in my dev.exs file. The gen.resources step step works just fine if I do everything from scratch again.
Thanks!
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








