-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database connection is still failing when creating a database #14
Comments
Oh, I see that the routes not showing is expected as mentioned at #5. It seems to see the source code of rodauth is the only way for now. 😞 |
For the database connection issue, add DB = Sequel.postgres(extensions: :activerecord_connection, test: false) I'll probably update rodauth-rails to include
No, it doesn't. Feel free to remove it, and remove the |
Yes, the fact that a complete list of routes isn't mentioned in Rodauth documentation is not ideal. I'll think about how this can be addressed. |
I am testing locally to create the database with |
🎉 Yeap. Works flawlessly. Thanks for helping me with adding rodauth in my app.
|
Details in janko/rodauth-rails/issues#14
That's good to hear! I've addressed both of the these issues ( |
When creating a new database this code might fail. This was addressed as mentioned at janko/rodauth-rails#14.
* Bumping rodauth-rails version to 0.4.0 * Preventing database connection errors When creating a new database this code might fail. This was addressed as mentioned at janko/rodauth-rails#14.
Thank you for providing a fix so quickly.
🎉 The invocation of
flash
method is fixed!Unfortunately, the database problem still happening. I discovered that it only happens when I try to create the database. I created a repo with the vanilla rails API app I used and my docker setup. I hope it helps.
The steps:
rake db:create
-- it fails (see trace below)config/initializers/sequel.rb
rake db:create
-- it succeedsconfig/initializers/sequel.rb
rake db:migrate
-- it succeedsI have the following questions:
rails routes
? I only got the default Rails routes.app/controllers/rodauth_controller.rb
file?Here is the trace for the failed
rake db:create
. It feels like some other component tries to reach the database before its creation, and then fails because it doesn't exist.Originally posted by @adilsoncarvalho in #13 (comment)
The text was updated successfully, but these errors were encountered: