Skip to content

Confusion with fief and standalone postgresql deployment #162

Answered by frankie567
matteius asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding the database, an important thing to understand is that there is a "root" one that manages workspaces and one for each workspace. In the case of PostgreSQL, we leverage schemas for this. So it looks like this:

flowchart LR
    DB[Root]
    WS1[Workspace 1]
    WS2[Workspace 2]
    WSN[Workspace n]
    DB --> WS1
    DB --> WS2
    DB --> WSN
Loading

Thus, when you start Fief server, it'll create the schema for the "root" database (in public schema) and the "main workspace` database (in a schema named after its workspace ID).

If everything goes well, if you go to /admin/, you'll be taken to the login page. If you input the credentials set with FIEF_MAIN_USER_EMAIL and F…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@matteius
Comment options

Comment options

You must be logged in to vote
4 replies
@matteius
Comment options

@frankie567
Comment options

@frankie567
Comment options

@matteius
Comment options

Answer selected by matteius
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