createsuperuser with sqlite
letto4135
FREEOP

2 years ago

I have a low priority django app that just uses a sqlite db instead of postgres so I have a volume attached to my service for it.

Locally I have linked the service, but when I try and run railway run python [manage.py](manage.py) createsuperuser I get errors.

django.db.utils.OperationalError: unable to open database file

Far as I can tell there is no way to run anything directly on the service, which really sucks because that seems to be why this isn't working.

14 Replies

letto4135
FREEOP

2 years ago

2299c72c-3f0b-4b23-9a78-e606aad6bd60


2 years ago

Far as I can tell there is no way to run anything directly on the service, which really sucks because that seems to be why this isn't working.
Correct, thats why its always best to go with postgres


letto4135
FREEOP

2 years ago

I have no need for a full on database though and don't really want to pay for one when all I need is sqlite.


2 years ago

then your app would need to be able to create its own superuser account


2 years ago

some kind of logic that creates a superuser from environment variables if a superuser account doesnt already exist


letto4135
FREEOP

2 years ago

Ahhhh yeah I’ve done that once before… Forgot about that. Thanks

Hey while you’re here… The $5 plan specifies it comes with $5 of usage, does the $20 plan come with $20 of usage or $5?


2 years ago

it doesn't come with any usage 😬


letto4135
FREEOP

2 years ago

It says all hobby plan features though and hobby plan says $5 included…


2 years ago

yeah it's a bit misleading depending on how you interpret that sentence


letto4135
FREEOP

2 years ago

Yeah seems like a pretty big gray area there… Might want to reword it or specify it somehow for legalese purposes..


2 years ago

personally I don't regard credits as a feature


2 years ago

but yeah definitely could be worded better


letto4135
FREEOP

2 years ago

I found a comment on this thread
https://help.railway.app/feedback/allow-ssh-access-to-containers-via-cli-e4985f6f
that say that ability to connect directly to the containers is planned, any idea when it might come about?

You're in on that thread too 😮


2 years ago

no ETA sorry


Loading...