R
Railway•11mo ago
LargeEdition

See files generated deployment

I was able to get my site deployed on railway but I'm trying to access a file that is generated after deployment. Is it possible to see it (maybe with Railway CLI)?
37 Replies
Percy
Percy•11mo ago
Project ID: N/A
LargeEdition
LargeEditionOP•11mo ago
N/A To elaborate, when executing supervisord, all the logs of the child processes will be in a seperate file generated after starting supervisord im wondering if its possible to view the contents of those files
Brody
Brody•11mo ago
for all intensive purposes, it's not possible. configure supervisord to log to stdout/stderr
LargeEdition
LargeEditionOP•11mo ago
oh yea the second part would also be useful what exactly is stdout/stderr through is that the deploy log?
LargeEdition
LargeEditionOP•11mo ago
No description
LargeEdition
LargeEditionOP•11mo ago
I can already see the output of supervisor here though i just want to see the output of the child processes run by supervisor
Brody
Brody•11mo ago
I'm sure there's some results from Google that could explain it far better than I could configure supervisord to forward the logs of the child process to stdout/stderr
LargeEdition
LargeEditionOP•11mo ago
oh i see and how do I view stdout/stderr from railway?
Brody
Brody•11mo ago
the deployment logs
LargeEdition
LargeEditionOP•11mo ago
ok great thanks i will research into this ok i figured out the command but what would be the directory I should forward the logs to? I need to set
and
and
stderr_logfile```
Brody
Brody•11mo ago
i dont know off the top of my head, that would be something you could look up though me telling you would just be me googling it 🤣
LargeEdition
LargeEditionOP•11mo ago
ah ok ill try lol it seems like supervisor only has an option to redirect stderr 😭
LargeEdition
LargeEditionOP•11mo ago
No description
LargeEdition
LargeEditionOP•11mo ago
theres no option for redirect_stdout
Brody
Brody•11mo ago
i googled it stdout_logfile=/dev/stdout
LargeEdition
LargeEditionOP•11mo ago
wait what where did you find that information
Brody
Brody•11mo ago
uh in the second link of my google search
LargeEdition
LargeEditionOP•11mo ago
hmm my stdout is just completely empty now oh i just realized this is actualyl the original code i had so thats why I was able to see this
Brody
Brody•11mo ago
new ideas: - take my original advice and run two railway services, forego supervisord - use parallel instead of supervisord - use multirun instead of supervisord
LargeEdition
LargeEditionOP•11mo ago
No description
LargeEdition
LargeEditionOP•11mo ago
I'm trying to get the sdtout of the child processes
Brody
Brody•11mo ago
🙂
LargeEdition
LargeEditionOP•11mo ago
will that allow me to view the stdout of child processes from the deployment log?
Brody
Brody•11mo ago
all those options will the first option being the best
LargeEdition
LargeEditionOP•11mo ago
hmm wdym by two railway services what processes am I splitting up
Brody
Brody•11mo ago
the things you are trying to get supervisord to run
LargeEdition
LargeEditionOP•11mo ago
hmm ok i will try currently its just huey (celery) and the flask app
Brody
Brody•11mo ago
yeah a railway service for the flask app and a railway service for the huey thing
LargeEdition
LargeEditionOP•11mo ago
wait but then I wouldn't need supervisor anymore
Brody
Brody•11mo ago
correct
LargeEdition
LargeEditionOP•11mo ago
since i would just be starting each seperatly ahh
Brody
Brody•11mo ago
therefore no issues with logs
LargeEdition
LargeEditionOP•11mo ago
i see what you mean thanks!
Brody
Brody•11mo ago
to make it easy, i would have a Dockerfile.huey and a Dockerfile.flask that hopefully are self explanatory, then specify the appropriate dockerfile via the RAILWAY_DOCKERFILE_PATH service variable
LargeEdition
LargeEditionOP•11mo ago
but just for future reference its not possible to view files deployed inside railway? so for example I wouldn't be able to see the contends of childlogdir
Brody
Brody•11mo ago
unless you build that kind of functionality into your app, no
LargeEdition
LargeEditionOP•11mo ago
ok i see thanks again!
Want results from more Discord servers?
Add your server