Skip to content
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

rails generate doorkeeper:install fails with Doorkeeper::MissingConfiguration error #1617

Closed
leemeichin opened this issue Jan 6, 2023 · 2 comments

Comments

@leemeichin
Copy link

Steps to reproduce

  1. Add doorkeeper to a Rails app
  2. Run rails generate doorkeeper:install as suggested by docs

Expected behavior

It creates the doorkeeper initializer, updates routes, adds i18n, etc.

Actual behavior

bundle exec rails generate doorkeeper:install

[..]/doorkeeper-5.6.2/lib/doorkeeper/config.rb:33:in `configuration': Configuration for doorkeeper missing. Do you have doorkeeper initializer? (Doorkeeper::MissingConfiguration)

No files are generated.

System configuration

Rails version: 7.0.4

Ruby version: 3.2.0

Gemfile.lock:

Gemfile.lock content
...
    doorkeeper (5.6.2)
      railties (>= 5)
...
@leemeichin
Copy link
Author

leemeichin commented Jan 6, 2023

never mind, looks like I've duplicated #1577 :)

@nbulaj
Copy link
Member

nbulaj commented Jan 13, 2023

Hey @leemeichin

could you please try with

# Gemfile

gem "doorkeeper", github: "doorkeeper-gem/doorkeeper", branch: "fixes/lazy-load-associations"

and report any issues you found? (and backtrace please if present, I have to see which Doorkeeper lined caused an error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants