Trouble connecting Django to PostgreSQL database
Anonymous
TRIALOP

2 years ago

Hello,

I am very much a new developer trying to deploy a Django app with PostgreSQL. After reading the docs, it seemed to me that I should do the following:

  • Provision a PostgreSQL database (which I have done, with Project ID: b90272c3-dbc8-4122-b259-9d4f79d6642d)

  • Connect it to my local Django project (which has been shown to work with my local PostgreSQL).

  • Eventually, I would then set these environment variables with a .env and it should just work after deploying. I'm sort of following this tutorial: https://kowe.io/guide/deploy-django-on-railway-postgresql

However, I'm having trouble connecting my Railway provisioned database to my local Django project. When I try to run python3 manage.py migrate, the command just hangs for a very long time with no visible errors. I would really appreciate any help or direction.

182 Replies

brody
EMPLOYEE

2 years ago

is your postgres database in the same project as your django service?


Anonymous
TRIALOP

2 years ago

Hi Brody, thanks for answering. I think that's maybe what I'm trying to set up. I haven't hosted my Django project anywhere, it's just on my local machine. I am hoping to have it be hosted by Railway and use the Postgres DB, if that makes sense. I thought I would connect my local django project to the Railway Postgres DB first and then continue on. Does that make sense? Maybe I'm not expressing myself well of I have a misunderstanding in how this should work.


brody
EMPLOYEE

2 years ago

yeah it makes sense, you only have the database on railway right now


brody
EMPLOYEE

2 years ago

show me the database thing in your settings.py please


Anonymous
TRIALOP

2 years ago

Ah, I see…I think I can see how I can make a Django deployment that includes an already linked Postgres database now…

In any case, this is my database setup in settings.py:

DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": os.environ.get("PGDATABASE"),
"USER": os.environ.get("PGUSER"),
"PASSWORD": os.environ.get("PGPASSWORD"),
"HOST": os.environ.get("PGHOST"),
"PORT": os.environ.get("PORT"),
}
}


Anonymous
TRIALOP

2 years ago

And in my .env file, I have the actual values, copied over from the Variables section of the database


Anonymous
TRIALOP

2 years ago

Thank you so much for your help, by the way! I really appreciate it


brody
EMPLOYEE

2 years ago

lets try to do this in a way that doesnt involve putting the login to your database in a plaintext file


brody
EMPLOYEE

2 years ago

in the same project as your postgres database, add an empty service


Anonymous
TRIALOP

2 years ago

OK, thank you. I added it


brody
EMPLOYEE

2 years ago

screenshot please


Anonymous
TRIALOP

2 years ago

1222937763737768000


brody
EMPLOYEE

2 years ago

give it a better name haha


Anonymous
TRIALOP

2 years ago

ok, I just went for the default


Anonymous
TRIALOP

2 years ago

Will this empty service host the environment files? Or would it be the django project? What makes sense as a name?


brody
EMPLOYEE

2 years ago

this empty service for now will hold the variables, and it will also eventually be where you deploy your app to


brody
EMPLOYEE

2 years ago

so lets see a new screenshot after the name change


Anonymous
TRIALOP

2 years ago

Ok, I see


Anonymous
TRIALOP

2 years ago

Here you go

1222938623020630000


brody
EMPLOYEE

2 years ago

for the sake of simplicity, just name it "bibblio"
no need for complex names here


Anonymous
TRIALOP

2 years ago

1222938942647701500


Anonymous
TRIALOP

2 years ago

Got it


brody
EMPLOYEE

2 years ago

open up the bibblio service variables and its raw editor, paste this in -

PGDATABASE=${{Postgres.PGDATABASE}}
PGUSER=${{Postgres.PGUSER}}
PGPASSWORD=${{Postgres.PGPASSWORD}}
PGHOST=${{Postgres.PGHOST}}
PGPORT=${{Postgres.PGPORT}}

save and deploy


Anonymous
TRIALOP

2 years ago

Got it, I was reading about shared variables, this is setting the variables from the Postgres DB to the local environment of what will be the django project, right?


Anonymous
TRIALOP

2 years ago

It saved and deployed correctly

1222939911896957000


brody
EMPLOYEE

2 years ago

click their eye icons, do they all show the variables correctly?


Anonymous
TRIALOP

2 years ago

yup!


brody
EMPLOYEE

2 years ago

is there any other variables your app needs? if so, go ahead and add them there


brody
EMPLOYEE

2 years ago

the end goal of this is so that you are able to delete your local .env file


Anonymous
TRIALOP

2 years ago

I see. Yes, I have a few others, a Secret Key and a variable for whether the Django project is in Debug mode or not. I'll add them


brody
EMPLOYEE

2 years ago

ah you have debug set by a variable, okay you can keep the local .env file with only that debug variable set inside of it


brody
EMPLOYEE

2 years ago

in the service variables youd want to have that debug variable set so your app runs in production mode when on railway


Anonymous
TRIALOP

2 years ago

Ok, yes. So in my local env, I'll set DEBUG to True but when I add it to the service variable I set it to false.


brody
EMPLOYEE

2 years ago

correct


brody
EMPLOYEE

2 years ago

so show me your local .env file now, it should only contain the debug line


Anonymous
TRIALOP

2 years ago

OK, I added and deployed the changes and here's the .env file. Crucially, the DJANGO_DEBUG on the service is False

1222941597675552800
1222941598044913700


Anonymous
TRIALOP

2 years ago

Ah sorry for the bad screenshot of the env file


Anonymous
TRIALOP

2 years ago

1222941704252817400


brody
EMPLOYEE

2 years ago

looks good to me


brody
EMPLOYEE

2 years ago

do you have the railway cli installed?


Anonymous
TRIALOP

2 years ago

Yes, I just installed it


Anonymous
TRIALOP

2 years ago

And I logged in and all


brody
EMPLOYEE

2 years ago

then in your project directory, run railway link and link to the bibblio service


Anonymous
TRIALOP

2 years ago

done

1222942059913285600


brody
EMPLOYEE

2 years ago

do you have migrations ready to apply?


Anonymous
TRIALOP

2 years ago

Yes, I believe so


brody
EMPLOYEE

2 years ago

okay, run railway run python [manage.py](manage.py) migrate


brody
EMPLOYEE

2 years ago

this runs the given command locally, but with the linked service variables available, much better than keeping the database credentials in plaintext


Anonymous
TRIALOP

2 years ago

Got it. That makes sense. It's running


Anonymous
TRIALOP

2 years ago

Or at least, I haven't gotten a completion nor error message


brody
EMPLOYEE

2 years ago

awsome


Anonymous
TRIALOP

2 years ago

Thank you so much again, by the way. I've really been struggling with trying to deploy this app for months (on and off) and it's been frustrating. I really appreciate you helping me out


brody
EMPLOYEE

2 years ago

you sure waited a long time to ask for help haha


Anonymous
TRIALOP

2 years ago

Haha, yea, I think my mistake was jumping from one deployment environment to another (Google Cloud, Vercel, Azure) and not finding ways to ask for helpthere


brody
EMPLOYEE

2 years ago

yeah i dont think any of those services have a good community


Anonymous
TRIALOP

2 years ago

Yea, it was a lot of forum hunting and being frustrated, even trying to reach out to people who wrote tutorials on LinkedIn to no avail


Anonymous
TRIALOP

2 years ago

but anyway, I unfortunately have to run to a meeting for my day job soon (within 10 minutes)


Anonymous
TRIALOP

2 years ago

Do you think I might be able to ask for some help later? Or generally, what next steps do i take? Should I simply run railway up hopefully once the migrations run?


brody
EMPLOYEE

2 years ago

do you have your code on github?


Anonymous
TRIALOP

2 years ago


brody
EMPLOYEE

2 years ago

Do you think I might be able to ask for some help later?
of course!


brody
EMPLOYEE

2 years ago

then youd want to go the github deployment route and not railway up, we can get that hooked up when you are free again


Anonymous
TRIALOP

2 years ago

Ok, sounds good! Thanks so much, Brody!


Anonymous
TRIALOP

2 years ago

Another quick question: why does the migration take so long? Is it simply because it's running this on the Railway server?


brody
EMPLOYEE

2 years ago

as mentioned, its not running this on the railway server, its ran locally


Anonymous
TRIALOP

2 years ago

Ah ok. I think I'm understanding a bit better. However, I'm a little concerned as the migrations never ended/failed


brody
EMPLOYEE

2 years ago

screenshot please


Anonymous
TRIALOP

2 years ago

So this is the terminal where I ran the railway command (first screenshot). However, the second screenshot is where I was running my project locally ( I forgot to kill it beforehand). I got the attached error. I'm thinking I should stop my local server and then re-try the railway command?

1222958814106747000
1222958814366666800


brody
EMPLOYEE

2 years ago

yes


Anonymous
TRIALOP

2 years ago

Ok


Anonymous
TRIALOP

2 years ago

I'm running it again. Approximately how long do you usually take? The migrations for my project usually take very little time when I ran it locally before so I'm a little confused as to why it's taking significantly longer


brody
EMPLOYEE

2 years ago

nah theres for sure something wrong here


brody
EMPLOYEE

2 years ago

what verison of the cli are you on


Anonymous
TRIALOP

2 years ago

railwayapp 3.5.2


brody
EMPLOYEE

2 years ago

just for fun, what happens if you run python [manage.py](manage.py) migrate


Anonymous
TRIALOP

2 years ago

Ah. There, I get this error:

1222961476059529500


brody
EMPLOYEE

2 years ago

okay thats normal


brody
EMPLOYEE

2 years ago

what do you get if you run railway --help


Anonymous
TRIALOP

2 years ago

it seems to be working well

1222961959713112300


Anonymous
TRIALOP

2 years ago

Hey Brody, again, I really appreciate your help. I had an idea since I'm not really sure how to proceed from here. Would it make sense to try to set up a django with postgres template and then try to add my github repo to the django service? Or would that possibly interfere with what we're trying to do here


brody
EMPLOYEE

2 years ago

nah something is going on here with your project and the cli, issue isnt with the railway side of things


brody
EMPLOYEE

2 years ago

what does railway variables print


Anonymous
TRIALOP

2 years ago

It seems to print out my variables

1222967801094996000


brody
EMPLOYEE

2 years ago

well dont send that here, this is public


Anonymous
TRIALOP

2 years ago

Oh, sorry--yea I should have realized


brody
EMPLOYEE

2 years ago

check the database on railway, does it have tables?


Anonymous
TRIALOP

2 years ago

Yes it does


brody
EMPLOYEE

2 years ago

im kinda stumped right now


Anonymous
TRIALOP

2 years ago

Hmm, ok, no worries Brody. I appreciate you trying to help me out anyway


Anonymous
TRIALOP

2 years ago

Do you think it would at all make sense to delete the services on my project and re-try it? I'm really not sure what else I could do


brody
EMPLOYEE

2 years ago

no, theres no issues with railway here


Anonymous
TRIALOP

2 years ago

OK. Well, I think I will try to uninstall the CLI since you mentioned the issue seems to be there


Anonymous
TRIALOP

2 years ago

and re-install it


Anonymous
TRIALOP

2 years ago

Actually, one question. I should be connecting to the 'bibblio' service, right? not the "Postgres" service?


brody
EMPLOYEE

2 years ago

correct


Anonymous
TRIALOP

2 years ago

Should I have a Procfile or anything in my root directory?


brody
EMPLOYEE

2 years ago

yes, but that has nothing to do with the cli


Anonymous
TRIALOP

2 years ago

Hm ok, yea. Thanks for your help! I'll reach out again if some of my tinkering does anything


brody
EMPLOYEE

2 years ago

try railway shell and then run the migration command (without railway run)


Anonymous
TRIALOP

2 years ago

When I run railway shell, it seems to immediately boot me off of it

1222974693972119600


Anonymous
TRIALOP

2 years ago

or like, I'm not able to type in a command before getting back to my regular command line


brody
EMPLOYEE

2 years ago

you are in the shell


brody
EMPLOYEE

2 years ago

what terminal is this?


Anonymous
TRIALOP

2 years ago

Its zsh


brody
EMPLOYEE

2 years ago

mac?


Anonymous
TRIALOP

2 years ago

yea


brody
EMPLOYEE

2 years ago

okay so what happens if you run the migration command in the railway shell


Anonymous
TRIALOP

2 years ago

I see… I didn't understand that I was in the shell. I thought it would be more like when you run a python repl or like when connecting to postgres with psql. I ran the command in the railway shell and it's still taking a long time, just like with the railway run option


brody
EMPLOYEE

2 years ago

something funky is happening


brody
EMPLOYEE

2 years ago

can you temporarily remove your local .env file


Anonymous
TRIALOP

2 years ago

ok


Anonymous
TRIALOP

2 years ago

I removed it and ran it again with railway shell . It seems to still be stuck


brody
EMPLOYEE

2 years ago

this is super odd


brody
EMPLOYEE

2 years ago

okay desperate attempt, copy the raw variables from railway into a local .env file. then run the migration command without railway run or railway shell


Anonymous
TRIALOP

2 years ago

ok


Anonymous
TRIALOP

2 years ago

So, wait, you mean to copy the actual values of the Postgres service, not the related variables like ${{Postgres.PGDATABASE}}, right?


brody
EMPLOYEE

2 years ago

yeah you'd need to replace the references with the values


Anonymous
TRIALOP

2 years ago

Yea, it still didn't work. This is what my .env file looks like and the migrations are still hanging

1222981228014211000
1222981228282642400


brody
EMPLOYEE

2 years ago

you aren't in a railway shell right?


Anonymous
TRIALOP

2 years ago

no, I don't think so-- when I ran railway shell it removed my virtual environment (venv), so I'm pretty sur e I'm in my regular shell


brody
EMPLOYEE

2 years ago

okay so then there is something wrong with your project


brody
EMPLOYEE

2 years ago

or your network


brody
EMPLOYEE

2 years ago

go download dbgate and use it to try to connect to the database


Anonymous
TRIALOP

2 years ago

Hmm… ok. I have another meeting soon that I have to run to. So I'll try to do that and get back to you


Anonymous
TRIALOP

2 years ago

Brody, I really deeply do appreciate your help


Anonymous
TRIALOP

2 years ago

It's possible that its my network-- I'm a teacher so I work at a school and there might be some network restrictions


brody
EMPLOYEE

2 years ago

oh yes from personal experience, schools do have very restrictive firewalls


Anonymous
TRIALOP

2 years ago

Ok. I'll try this back home and see if it works on my home network. If not, I'll try to work through DB Gate. I do have a bit of a busy schedule the next few days due to the holiday, but if I encounter any more issues, I'll be sure to ping you


Anonymous
TRIALOP

2 years ago

thanks so much again!


brody
EMPLOYEE

2 years ago

happy to help, and yep feel free to ping


Anonymous
TRIALOP

2 years ago

Hey Brody! Guess what? Trying it out at home not on the school's firewall got me different (and fast) results! I tried to run both the migration command with/without railway run and in both cases, I got the same error (see attached).

I ran into something similar when switching databases from local sqlite to postgres. What I did there is that I dumped my database into a json (it wasn't very large), then deleted the migrations, and then ran my migrations, and then finally reloaded my data using loaddata in django.
I feel like that might work, but something in me thinks that there might be something obvious I am missing that would not involve me doing this, but somehow 'syncing' or merging my databases instead.

What do you think, do you have any insights onto how to solve this new issue? This SO post (https://stackoverflow.com/questions/44651760/django-db-migrations-exceptions-inconsistentmigrationhistory) gave me some ideas last time but I'm wary of dropping my database since I know I wouldn't actually be able to do that with a team/larger database.

1223024597730070800


brody
EMPLOYEE

2 years ago

do you have any data in the database? like besides the tables existing?


Anonymous
TRIALOP

2 years ago

I do have some data, like 'testing' data from when I was testing out my app. I wouldn't be sad if I had to drop those tables completely, but generally, I guess I've never really gone from dev to production and so I'm not really sure what the process for your data is supposed to go. If it were possible to keep that testing data, that would be nice but I'm not like wedded to it or anything.


Anonymous
TRIALOP

2 years ago

Also, Brody, thanks so much for your help. Do you have something like a Ko-Fi and/or like Venmo or something? You've really helped me out a bunch and honestly just made me feel like this was possible. I'd love to like buy you a cup of coffee in gratitude or something


brody
EMPLOYEE

2 years ago

I'm assuming your data in the database got messed up somehow, I don't know your project so I wouldn't really know on how to advice fixing it without wiping the database and re-running the migration again.

i do have a bmac in my bio, but please don't feel any need to send me anything


Anonymous
TRIALOP

2 years ago

got it, yea, I don't feel the need to, I just appreciate it! So, just as a follow up question, does just wiping my database mean deleting my migrations folder and trying to run teh migrations again?


brody
EMPLOYEE

2 years ago

wiping your database would mean you need to go into the volume's settings and wipe it, then running the migrations again with railway run


Anonymous
TRIALOP

2 years ago

Hey Brody, thanks for getting back to me. I'm not sure what you exactly mean by 'wipe the volume's settings'. Would that be the Postgres database I just made on Railway? If I go into my Railway project, I have some tables there (see attached) but I don't actually have like any tables that correspond to any data that I might have created, like by creating users or anything. So I'm a little confused as to what/why I would wipe this volume

1224862778209337600


brody
EMPLOYEE

2 years ago

so to recap you where having issues with the database and i recommended wiping it so that you can start with a fresh migration


Anonymous
TRIALOP

2 years ago

Yes, exactly


Anonymous
TRIALOP

2 years ago

sorry, I should have mentioned that


brody
EMPLOYEE

2 years ago

so is that something you are going to do or are you going to try to resolve the errors manually?


Anonymous
TRIALOP

2 years ago

I'm going to try to do that because I have a back up of my data/this is a testing project. I want to learn how to deploy this project and I'm not too fussed about the data


brody
EMPLOYEE

2 years ago

okay then go ahead and wipe the database's volume


Anonymous
TRIALOP

2 years ago

So, what do you mean by that? Do I go into the Railway project and just delete all of these tables or is that something I need to do on my like local environment. I don't know if that makes sense


brody
EMPLOYEE

2 years ago

you simply press the wipe volume button in the databases's volume settings


Anonymous
TRIALOP

2 years ago

OK. I'm having some trouble finding that but I will look for it. But afterwards, I should be able to run railway run python [manage.py](manage.py) migrate and then the same with runserver and if I have no errors, I can push to my github repo, then connect my repo to the service and it should work?


brody
EMPLOYEE

2 years ago

click on the volume of the postgres service


brody
EMPLOYEE

2 years ago

and yes you would want to run railway run python [manage.py](manage.py) migrate and then you can redeploy the railway service


Anonymous
TRIALOP

2 years ago

OK. I think I did both of those things. In order to redeploy the Railway service, you mean the Postgres database, right?


Anonymous
TRIALOP

2 years ago

Hey Brody, so I'm able to create a new user with my Postgres database service from my local machine, which is exciting! However, I then tried to deploy by connecting to my repo and it said my deploy finished. In my deploy logs for that service, all I see is this (attached), which doesn't seem good. Do you have any tips as to what to explore? I'm not entirely sure why python would be a command that is not found on Railway's python

1224871714794639600


brody
EMPLOYEE

2 years ago

please send your build logs


Anonymous
TRIALOP

2 years ago

Ok. I think it's possible my issue is this: https://www.answeroverflow.com/m/1113611990238240778 (someone very knowledgeable giving some good tips there 😉 ), so I'm going to try what you are suggesting there.

I too have a package.json too because I guess I tried to make a hybrid react/django app and I'm using webpack to bundle my react files into a index-bundle.js files. In the future, I'm probably sticking with more of a cleanly split react front end / django cors framework app, but I'm digressing. Below is my build log:


Anonymous
TRIALOP

2 years ago

Pushing [==================================================>] 94.63MB 3bea1f1ca704
Pushing [==================================================>] 96.77MB 3bea1f1ca704
Pushing [==================================================>] 98.95MB 3bea1f1ca704
Pushing [==================================================>] 101.1MB 3bea1f1ca704
Pushing [==================================================>] 103.2MB 3bea1f1ca704
Pushing [==================================================>] 105.9MB 3bea1f1ca704
Pushing [==================================================>] 106.5MB 3bea1f1ca704
Pushed 3bea1f1ca704
750024d5-965f-44e2-9fd6-d06bda6f036d: digest: sha256:9efe2f346744dc0f2552ce1a4c817d49b2c63d92a3f9f902a8ede9444b948049 size: 2421

Publish time: 9.84 seconds


Anonymous
TRIALOP

2 years ago

(or at least the ending of it)


Anonymous
TRIALOP

2 years ago

Hmm, so I tried this railway.json file (the one you suggested) and my build failed this time

{
    "$schema": "https://railway.app/railway.schema.json",
    "build": {
      "builder": "NIXPACKS",
      "nixpacksPlan": {
        "providers": ["python"],
        "phases": {
            "setup": {
                "nixPkgs": ["...", "nodejs"]
            }
        }
    },
    "buildCommand": "npm ci"
    },
    "deploy": {
        "startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn webapp.wsgi",
      "restartPolicyType": "ON_FAILURE",
      "restartPolicyMaxRetries": 10
    }
}

Anonymous
TRIALOP

2 years ago

It doesn't seem to have found a version of Django on my requirements.txt but I just did pip freeze > requirements.txt to save my package requirements (this is my build log):

6.026 ERROR: No matching distribution found for Django==5.0.3
6.251
6.251 [notice] A new release of pip is available: 23.0.1 -> 24.0
6.251 [notice] To update, run: pip install --upgrade pip
-----

Dockerfile:20
-------------------
18 |     ENV NIXPACKS_PATH /opt/venv/bin:$NIXPACKS_PATH
19 |     COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/bf770e00-35cd-438c-88ec-c9385e1bc086-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
21 |
22 |     # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1

Error: Docker build failed

Anonymous
TRIALOP

2 years ago

Any help or insights at all you can point me to are super appreciated


brody
EMPLOYEE

2 years ago

full build logs please


brody
EMPLOYEE

2 years ago

im pretty sure i have sent you this, but you havent been using it so ill send it again -


Anonymous
TRIALOP

2 years ago

Ah, no I dont think I'd seen that. A useful tool


Anonymous
TRIALOP

2 years ago


brody
EMPLOYEE

2 years ago

what version of python do you use locally?


Anonymous
TRIALOP

2 years ago

Python 3.11.8


brody
EMPLOYEE

2 years ago

then you would want to add a runtime.txt to your repo with just 3.11 in it


Anonymous
TRIALOP

2 years ago

hm ok. Gotcha, thanks for the tip -- I'll let you know how it goes!


Anonymous
TRIALOP

2 years ago

So the deployment worked but I'm getting a TCP/IP connection error (log attached). I'm trying to debug the issue and any help would be appreciated!

1224881113202425986


brody
EMPLOYEE

2 years ago

you need to use PGPORT here


Anonymous
TRIALOP

2 years ago

omg, wow, I don't know how I would have caught that. Thanks for the second set of eyes


brody
EMPLOYEE

2 years ago

you arent the first to make that mistake


Anonymous
TRIALOP

2 years ago

haha thanks


Anonymous
TRIALOP

2 years ago

I'll let you know how it goes, but I'm about to have dinner. Thank you sooo much again for all of your help


Anonymous
TRIALOP

2 years ago

It's truly amazing


brody
EMPLOYEE

2 years ago

happy to help


Anonymous
TRIALOP

2 years ago

Thanks so much! After fixing some more typos, I'm getting no build nor deployment errors (I think… is it normal for a deploy log to look like this?):

1224896661092962406


brody
EMPLOYEE

2 years ago

yeah that looks good to me


Anonymous
TRIALOP

2 years ago

Awesome! Yea, I think I'm not serving my static files for my django project correctly, but I think that's more of a django thing than a railway thing. I really appreciate all of the help, again!


brody
EMPLOYEE

2 years ago

yeah read up on the whitenoise docs


Anonymous
TRIALOP

2 years ago

will do! Have a good night!


brody
EMPLOYEE

2 years ago

you too!


Anonymous
TRIALOP

2 years ago

Hey Brody, I hope you're doing well. I had a quick question I was hoping you might be able to point me in the right direction of. I'm having some csrf troubles on my django app still (it's showing up now but I can't post anything). So, I'm trying to write to my own debugging logging file. I'm able to write to my own file on my local machine, but whenever I'm not sure where that logging file would exist on the Railway server. Would you happen to know anything about that? Any help/insight would be greatly appreciated


brody
EMPLOYEE

2 years ago

you would want to log to stdout/stderr not a file


Loading...