janko / rodauth-rails

Rails integration for Rodauth authentication framework
https://github.com/jeremyevans/rodauth
MIT License
571 stars 40 forks source link

rails generate rodauth:install hanging with Postgres #65

Closed andyrue closed 2 years ago

andyrue commented 2 years ago

I'm using Rails 6.1.4.1 and Ruby 2.6.3. On a fresh rails app using the Postgres adapter, I'm not able to run the rodauth install command. It just hangs. I was able to run it using Sqlite3.

Here are the steps I perform. rails new app-name --api -d postgresql (or non-api, didn't make a difference) Add gem "rodauth-rails", "~> 0.17" to Gemfile bundle install rails generate rodauth:install --json (not using --json didn't help either) This is where it hangs. I eventually have to kill the process.

Thanks for any help!

andyrue commented 2 years ago

Hmm, this may not be due to using Postgres. I went back to try using Sqlite3 again and it is also now hanging. I'm not sure what's going on.

andyrue commented 2 years ago

Restarting my computer seems to have solved this. Not sure what was causing it.