Nicky
What is the best way to install private npm packages?
My usecase is that my node app needs to install a package from a private github registry.
What I would normally expect is to be able to pass a .npmrc (like Vercel) or a token from the env variables and have the usual installation during the build step. As per my understanding this is not currently supported by railway.
So my question is, what would be the best workaround in this case? I'm not using a custom dockerfile for the build.
7 replies
Redis connection closed on private network
Hi, I'm facing the following issue with redis.
I have a nestjs application where I'm using redis as the transport layer between microservices.
When I set the
PUB_SUB_URL
to ${{pubsub.REDIS_URL}}
which is the public url everything is fine.
But if I change the variable to ${{pubsub.REDIS_PRIVATE_URL}}
I a connection closed error.
I've read about the private network initialisation times on railway but the redis service is already up and running at the time of deploying my nestjs app
projectId: 8a8bfe2d-1094-4b5f-834a-eba6388d018017 replies
Private network
Hi! I have a similar issue to the one discussed here: https://discord.com/channels/713503345364697088/1122290612398477343
I have two services, A and B. Both services are running nodejs with fastify.
A is a public service and wants to call the private service B.
Whenever calling service B I get the following error:
Error: connect ECONNREFUSED fd12:5f15:8f96::4f:8387:fcf5:8081
This is the endoint I'm calling using axios :
http://my-address.railway.internal:8081/graphql
Service B is running on port 8081, I've set it up from the env variables
Any ideas?15 replies