R
R
RRailway
Created by R on 1/28/2024 in #✋|help
why do I need vpn to get to railway.app
Hi, starting sometime recently, trying to load (or ping) railway.app gets no response, just times out, on multiple devices connected to the same external ip. If I use a vpn (or apple private relay) to appear with a different ip, I can get through. Once I have a connection and log in, I can turn off the vpn and maintain the logged in, working state. Is it possible my isp assigned me an ip you blacklisted? Or is there some other explanation? Thanks!
8 replies
RRailway
Created by R on 12/3/2023 in #✋|help
Serving Django media from a volume
Hi, I'm trying to deploy a django app that needs to serve small size media from an attached volume. I've made this work by adding "[re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT})]" to the url patterns in django, but this feels suboptimal.
The simplest thing (I've found googling) is to put nginx infront of gunicorn/django and have it direct /media to the volume path (and supposedly nginx handling all the incoming traffic first has other benefits).
Is there a way to do this using one service in django? Or do I deploy nginx as one service and django as another?
If two services, can the nginx service access the volume with media attached to django (or the other way around)? I've found templates for various parts of this setup but nothing that shows how to put it all together. Thanks!
9 replies
RRailway
Created by R on 11/26/2023 in #✋|help
pg_isready over internal network
Hi, I'm new to railway, so sorry if this q has an easy answer I somehow can't find. I have a postgres db on railway and another process that is trying to call pg_dbisready --dbname=<DB_PRIVATE_URL>. The log says "postgres.railway.internal:5432 - no response". This makes me think something about my db config is wrong and it's rejecting connections over the internal network. It works with the standard (viaduct.proxy.rlwy.net) url, but I think this means I pay for data transfer?
17 replies
RRailway
Created by R on 10/3/2023 in #✋|help
Migrating database to railway
Hi, I'm trying to migrate a project to railway and initialize/populate a postgre database with content. I did this (naively) by django dumpdata (on previous instance) and loaddata (through railway cli). This approach, however, is painfully slow. Is this expected? According to metrics it's running around 3-5kbps. There must be a better way? Project id: 6e8bbf6b-235b-4f1b-903a-714c7d612be7
5 replies