SHxKM
Render Error on new deployment
On a new deployment, there's always a brief period of time (5-25 seconds) where the website intermittently returns an error with Railway theme and some generic error text (I forget what it is). Is that behavior expected?
175 replies
Cache mounts MUST be in the format --mount=type=cache,id=<cache-id>
I'm getting this error while trying to cache downloading a somewhat challenging to cache pip package:
This runs file locally and the package isn't redownloaded, but it fails on Railway with:
Why is
id
mandatory, and why is it missing the target field?17 replies
Where should I run my Django migrations (Dockerfile)
So I’ve successfully deployed two services to Railway this weekend.
I’m using compose for local development but since Railway doesn’t support that I deployed using the Dockerfile, overriding the ENTRYPOINT for one of the services.
One thing I don’t particularly like about my setup is that Django DB migrations are being run in the ENTRYPOINT code, which ties this operation to the container’s boot.
Ideally this should be some kind of pre/post hook. Do I have other options?
7 replies
How to override Dockerfile Start CMD/Entrypoint "in exec form"?
I guess this more about me not understanding what "exec form" exactly is (despite reading the docs). Can anyone give an example how would I override in a way that complies with how Railway works:
Let's say my default CMD is:
And the same Dockerfile has:
How do I change it to CMD:
39 replies
Running one off commands in Docker container
Super weird to me that Railway doesn't support simply SSHing into a VM.
Anyway, I'm deploying a Django project. In Django there's something called management commands and it's imperative for me to be able to use it.
Locally, I do it with:
But since I'm using a containerized environment, I do it like this:
I thought I can do the same remotely with
railway link
.
When I do:
The command seemingly runs successfully. But I know it didn't run on the railway production instance because it's supposed to populate DB rows, and nothing like that happened in the Railway environment.
Am I out of luck?138 replies
dependencies re-installed on every build
Django (Python) app .
Railway is installing my dependencies on every build, even though no changes are made to
requirements.txt
.
Project ID: fc77f02c-13c9-45e5-8d2f-d6c3dfc9188d
I see this in the build logs:
My nixpacks.toml
:
Builds are taking > 10 mins.9 replies
Builds failing without any logs or reason after adding custom step and removing it
fc77f02c-13c9-45e5-8d2f-d6c3dfc9188d
I added a step that relies on phases.setup
, and after things didn't work as expected removed it, now it's failing without any build or deploy logs. Very unreliable experience.3 replies