Closed piemont closed 9 years ago
Can you run http://tmate.io/ and share your terminal with me? (you may send the connection string via email). This way it will be easier to debug :) Thank you
The culprit was spring. Use DISABLE_SPRING=1
to disable spring.
I have nobrainer 0.29.0 with rails 4.2.4. I've set
RDB_HOST
,RDB_AUTH
, andRDB_DB
to point to a RethinkDB server on EC2.When I launch my rails app via
rails server
and send a GET request that requires querying RethinkDB, NoBrainer correctly generates a connection to EC2, with the following output:However, when I enter the rails console via
rails console
, NoBrainer does not pick up the environment variables to configure the connection URI:Therefore when I try to execute a NoBrainer query from the console, the connection is refused (as there is no DB running at localhost:28015):
Why does my database configuration via environment variables not work in console? I have tried doing this configuration both manually in the linux shell, and via secrets.yml.