Creating a superuser with one command #2617
Replies: 2 comments
-
Hi Griatch, I tried this in an OpenShift container (I'm using a rather sketchy Dockerfile built on the one supplied with Evennia and putting the game folder in /tmp as proof of concept) and I get an infinite loop of
My repo has a default gamedir as described in the Evennia dockerfile I see this if I run evennia start -l as well. |
Beta Was this translation helpful? Give feedback.
-
I automate Django admin permission creation in Docker, but I am unfamiliar with OpenShift. It took me a while to get it sorted, but to do it in Docker, you need to set your environment variables (DJANGO_SUPERUSER_USERNAME, DJANGO_SUPERUSER_PASSWORD, and DJANGO_SUPERUSER_EMAIL) and then execute "python manage.py createsuperuser --noinput" from within the container. I spent a lot of cycles getting this to work & hope this saves you some time getting an answer. |
Beta Was this translation helpful? Give feedback.
-
As you know, setting up Evennia is done with
When you run
evennia start
for the first time you will be asked to create a superuser in a few interactive steps. If you want to automate this process (such as for automatic deployment) this won't work. You can do this by adding the following between themigrate
andstart
steps (*nix command line):or with envvars:
Note that you will not have a Character when logging in, you'll have to create that manually.
Beta Was this translation helpful? Give feedback.
All reactions