Setup Super User for GlitchTip backend in Railway
I setup glitchtip using this template here https://railway.app/template/AMx6AD
I want to start adding users to glitchtip, but apparently I need to setup a django backend superuser. To do that I need to run
./manage.py createsuperuser
. I don't have glitchtip running locally and don't really know how to do that. Best I could do is run the container locally, but then I would have to open a shell in the container and then figure out how to authentication to railway from inside to even attempt running this locally.
Is it possible to somehow run this in the container on railway?
Thank youSolution:Jump to solution
you are very close! there are two ways to go about this
- run the container locally and shell into it, then you would use the railway cli with
railway run python manage.py createsuperuser
after doing a browserless login and linking your project and service
- install glitchtip locally then run the same railway cli command
either way you will need to use the railway cli
https://docs.railway.app/develop/cli...7 Replies
Project ID:
644881e4-487b-4dfe-ae8f-0d1ee05f7d95
644881e4-487b-4dfe-ae8f-0d1ee05f7d95
Solution
you are very close! there are two ways to go about this
- run the container locally and shell into it, then you would use the railway cli with
railway run python manage.py createsuperuser
after doing a browserless login and linking your project and service
- install glitchtip locally then run the same railway cli command
either way you will need to use the railway cli
https://docs.railway.app/develop/cliOkay. I was hoping there is an easier way, but I shouldn't have to do this much so that is fine
yeah at this time railway doesn't provide a way to ssh into the running container
I finally got to doing this. For more detail on how to do it, see https://github.com/ThallesP/glitchtip-railway/issues/1
GitHub
Creating a Super User for Django Backend · Issue #1 · ThallesP/glit...
I can't figure out how to create a super user so that I can manage users in the admin portal. I know you are suppose to use manage.py, but not sure how to do that when its in railway. Can you h...
very nice documentation!