Closed kevinburleigh75 closed 9 years ago
Apipie causes a bunch of stuff to reload. Likely we just have to make the OSU::AccessPolicy stuff resistant to being reloaded.
one option is to sepearate the docs server from the API server. (i.e., don't serve, generate docs on the api server).
Well autoloading happens in Dev only (so this bug shouldn't happen in Production) And separate servers in dev is probably not going to happen...
Ah okay. So, during production deploys, how are the API docs updated?
From Apipie's documentation it doesn't (or shouldn't) cause controllers to reload in production. So updating the docs (or the controllers for that matter) requires a server restart.
I see. Okay. Thanks @Dantemss
Closing in favor of https://github.com/openstax/openstax_utilities/issues/10
I got this error when trying to use an OAuth token. Restarting the server fixed it. @Dantemss noted that this seems to occur after the API docs are regenerated.