Running fief from shell/virtualenv (not in docker) #290
-
I successfully tried fief as docker container, it works, but I want to start it directly, in my virtualenv to explore and understand fief better. My .env file:
I do not know, If this is important or not, but I checked my mysql fief database, and I see these tables:
all of them are empty (0 rows) except alembic_version, which has 'version_num = c8cf076d3ffa' I run In server console I see this:
Should I configure openid_configuration some way? And maybe there is an guide how to start fief in virtualenv? I'm doing it intuitively and probably missing some important steps. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hail, @yaroslaff 👋 I've noticed you shared secret values: For your security, I've taken the liberty to replace them with dummy values. |
Beta Was this translation helpful? Give feedback.
-
Hmm 🤔 Configuration looks correct! Did you start from a clean database? If not, you should check that the main workspace on the |
Beta Was this translation helpful? Give feedback.
-
migrate worked well for me (re-created table structure as I described above) but
Despite I have Why this commands tries to create database with such random name? Is it needed? Somehow it does not honors |
Beta Was this translation helpful? Give feedback.
-
This worked, thank you! One thing looks strange, could you please comment it?
Is this expected? Looks like operation finished successfully, because web UI looks working. |
Beta Was this translation helpful? Give feedback.
In development, you have to run the following command to create the main tables:
Then, you probably want to create the main workspace. You can do it like this:
For reference, this is what we do in the initalization script of the GitHub Codespace: https://github.com/fief-dev/fief/blob/main/.devcontainer/post-create.sh