Hey all- I am at the beginning of the `graphql rub...
# orm-help
p
Hey all- I am at the beginning of the
graphql ruby tutorial
and am getting an error on
rails db:create
😞 can't even start the project. I have Stack O'd the issues but nothing seems to work. this is likely an easy fix but I am NOOOOOOOObs
Copy code
rails db:create --trace
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
rails aborted!
ActiveRecord::AdapterNotSpecified: 'local' database is not configured. Available: ["default", "development", "test", "production"]
I have the full stack trace if helpful. THANK YOU!!
n
hey @pe thanks for bringing this up here! 🙂 I haven't followed the Ruby tutorial yet, but it sounds like somewhere
local
is used instead of one of the four options listed there.
I think the best way to receive help is to raise an issue right here: https://github.com/howtographql/howtographql
p
Hi @nilan thanks so much for getting back to me. If I prepend the environment it works!!! LOL gosh I am such an idiot!
Copy code
RAILS_ENV=development rails db:create --trace
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
Created database 'db/development.sqlite3'
Created database 'db/test.sqlite3'
Stay tuned, I will likely have more setup issue 🙂
🦜 1
n
ah that's nice! was that not clear by following the tutorial instructions?
again, I haven't read them so I wouldn't know!
p
Nah, not at all. If you run into any issues in the enviro setup in the tutorial you are pretty much on your own. Is there a channel dedicated to JUST this tutorial?? Maybe we should start one? The git repo is really for reporting and working on bugs, my issues are just NOOBS not bugs LOL
n
no there is no dedicated channel for these tutorials, here is fine 🙂 The tutorial is open source, so if you think a note that tells the reader to set the environment before running the
rails
command, a PR with that would be great!
p
OOO FUN it would be my first Open Source PR and make me super happy. OK WILL DO! thanks @nilan
n
haha cool 😄