Skip to content

Best way to handle multiple API configs #59

Answered by omohokcoj
jakubjanousek asked this question in Q&A
Discussion options

You must be logged in to vote

@jakubjanousek motor admin updates rows with configs in PG db on app restart - but i uses updated_at value to decide if the value should be reset or no.

So in your case - you need to manually update API url on prod so that updated_at is > than motor-admin.yml updated at for that api config record - this way api config url in PG db won't be replaced with the localhost value from motor-admin.yml.

It's a bit hard to advice any solution for this without knowing the full context of how/why you're using multiple motor admin in clusters with multiple external apis.
Another solution could be to put your api and motor admin under reverse proxy so that /admin and /product_api are available under th…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jakubjanousek
Comment options

@jakubjanousek
Comment options

Answer selected by jakubjanousek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants