Railway run not working
Hi, I'm trying to run a local command in visual studio code: railway run python manage.py createsuperuser
Every time I run it, I get "Looking good? Run
railway up
to deploy your changes!" which is clearly not what I'm looking for.
Could you please let me know how to fix this?140 Replies
Project ID:
417ca85f-12e5-4478-94a0-e5e37273290f
417ca85f-12e5-4478-94a0-e5e37273290f
can you show a screenshot please
upon success, what should the output of the create superuser command be?
should be like that
run the command in
railway shell
instead
also, what terminal is thismac
i had it working before
but it's stopped working now
just simply type
railway shell
press enter, than run the python command
doesnt really answer the question lolNo service linked, not entering shell.
link a service
railway service
i can recommend you take a look at railway -help
I got into the shell but nothing is happenign
screenshot please
bash i think
zsh is the answer
zsh
yeah
not a terminal expert lol
python manage.py createsuperuser --verbosity 3
see if that prints anything usefullit didn't
from within the shell?
yes from within railway shell
didn't work
it doesnt look like you ran the command in the railway shell
4th line i did
well im out of ideas lol
yeah, same here
so what am I supposed to do?
do you work for railway?
google, or wait for someone with more experience with django to come along, since im not even a python dev
negative
jesus
I thought you worked for them lol
common mistake, dont worry
I think I'm gonna pull the whole project down and start again
thats a little drastic
this worked 3 weeks ago
and today it's not working at all
im sure its something simple
have you updated the cli in the last 3 weeks?
I'm moving it all onto aws next week anyway so it's not a big deal
i dont want to hear that lol
just wanted to do some quick tests before i start to splurge
why aws over railway?
This app is nice for hobby projects
I rate(d) it until this happened
I need a korean server
these guys only have us ones
ah okay thats fair
targeting the chinese market
yeah that makes sense
so it's pretty useless for me
and I need to deploy my static files better
probably in a cdn
thats a good idea
like i said, heroku and railway are great for fun projects
and testing
just not practical for when you're trying to make a living
and spending a shitload in ad spend
what do use this app for?
im not a developer by profession so just side projects
what languages do you use?
mainly Go
you seem like a developer
just Go?
Never used that one
kinda niche isn't it?
yeah pretty much just Go
more niche than python, yeah
unusual starter language
the problem with the smaller languages is that you have to do more work
with the bigger ones, someone has already thought of it so you can just piggyback them
i dont follow, starter language?
a first programming language
its not my first, not at all
or you just prefer it
yes just prefer it now a days
ah ok, got the wrong end of the stick
you tried Rust?
supposed to be the best one now in terms of speed
nah i have no intrest in rust, if you need the extra speed rust can provide over go, you are either a multi million/billion dollar company or doing something very wrong
Got a feeling there's a bug somewhere
Just pulled it all down and started again but still getting the same error
i really dont know what would cause that, sorry
i can only think that they changed something on their end
as this was working up until today with pretty much the same code
?
No
What difference would that make?
maybe there was a breaking change introduced in the cli
this command is ran locally though, it doesn't really have much to do with "their end"
this mac is kinda old, i'm trying to avoid updating it as Apple keep charging for new stuff every time you do an update
lol
basically stuff just stops working every time you update
especially pirated stuff
if you buy a new laptop then it kinda makes sense to start again but not with an old one lol
can you show me a screenshot of your service variables
delete
DATABASE_URL
and then add all the variable references for your database like the popup wants you to
and show me another screenshot after that pleaseGood thinking batman
I didn't even spot that reminder
it takes like ten minutes to redeploy though
damn why
dunno
maybe coz i"m using a VPN
the server is in the US
do you deploy from github?
a bit of both
this one is going through github
then once it's in the build phase it has nothing to do with your connection
how long should it take?
not 10 minutes, you are probably using like 24 dependencies
this website has a shitload of dependencies
like 69
yeah then you did that to yourself lol
I didn't intend to
the dependencies downloaded their own dependencies
more things to download and install = longer build times
you'll have that
so screenshot of the service variables please?
plus I have to offer the functionality
that warning has gone
yeah but you didn't do what I said
That's what it asked me to do
only part of it
^
add the lot?
yes
it can't hurt
jesus, this is so vague
what is
how about this?
good
ok, it's redeploying
just everything
run
railway variables
to make sure all variables are available to the clithe lack of error messages etcs
from createsuperuser?
yeah, that it fails silently
i mean not railway's fault
just annoying
i agree there
just rather it told me straight up what the problem was although most error messages are crap anyway
that would be ideal
you sure this is right?
no im not
just checked, that is the correct command that i want you to run
yeah, they're there but can't send you a screenshot on here coz they're all exposed
thats all that matters
wanna go back into the railway shell and run that python command again?
shit
it's not having it
i'm beat
Django Tutorial Part 11: Deploying Django to production - Learn web...
That's the end of this tutorial on setting up Django apps in production, and also the series of tutorials on working with Django. We hope you've found them useful. You can check out a fully worked-through version of the source code on GitHub here.
it's pretty clear that that's the command
Pretty sure this something on their end now
unless it's failing silently
which is still an error on their end
guess this is what you get for 5 bucksš
again, this command is ran locally, its on your end
has nothing to do with Railway
Railway just allows you to host your programs. So far, all you two have been working on here is local
you havenāt touched Railway yet
eh?
this is a local terminal and a local shell
all this Railway shell stuff isnāt run on Railway. Itās porting the env variables to your terminal and using them for whatever command youāre running
Personally, Iām not a fan of the CLI. The Github integration is more than enough for me
If youāre having issues, try using Github
so what happens when you start with "railway"
?
thats not local
Railway imports your serviceās env variables to your pc, then the command is run with those env variables in place
itās local
This is the mozilla django guide
doesn't work
did do now doesn't
back to square one I see
you have changed something
going to need more info
the guide looks straightforward to me. Chances are youāve changed something
dunno what
Looking good? Run
railway up
to deploy your changes!
that;s all i get back
it's like just the run
method doesn't workecho $SHELL
run that/bin/zsh
to be fair, I've changed a lot
since the last site I uploaded
but I wasn't expecting to get stuck on something as basic as this
just trying to create a superuser
i don't even know a workaround
wrong folder
bruh
š¤¦āāļø
and you where blaming it on railway, lets not jump to conclusions next time
oh come on
what sort of error message is that?
I was in the upload folder
it seems like you still think the missing error message is railway's fault
I had to come out cd .. out of it
i do
its not
I'm a stickler for error messages
it doesnt make any sense
I had to come out of the actual folder to get it to work
closing now