IrisPumila
Running discord.py on Railway, but print statements are not output as logs.
As Adam said, I was able to output with flush=True. However, it's a hassle to write this for every print statement.
The method you suggested, setting the environment variable to PYTHONUNBUFFERED = 1, also worked.
Thank you. I will consider this issue resolved now.
12 replies
How to set environment variables when deploying using CLI
When I tried running the V2 railway, "railway init" read the ".env" file and added the environment variables to "Shared Variables". Then, after deploying, I was able to import all environment variables by selecting "Shared Variables" from the "Variables" settings.
V3 could not do the above. Personally, I prefer the V2 specification, but why can't I do the above with V3?
9 replies