iroh
iroh
RRailway
Created by iroh on 5/8/2024 in #✋|help
can i set my python version for my deployment
Hello folks, I want to deploy a fastapi project in railway with python 3.12 any hints of help? my current railway.json is the next one: { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "startCommand": "uvicorn main:app --host 8000" } }
5 replies
RRailway
Created by iroh on 3/8/2024 in #✋|help
Error: lost connection with pg db (node, express)
Hello folks, I’ve deployed a Node.js app with Express on Railway. Everything works fine, but every day around 1 AM, my app crashes because the connection to my database (also deployed on Railway) is lost. Do you have any tips to solve this strange issue? Here is my log from Railway: node:events:495 throw er; // Unhandled 'error' event ^ Error: Connection terminated unexpectedly at Connection.<anonymous> (/app/node_modules/pg/lib/client.js:132:73) at Object.onceWrapper (node:events:631:28) at Connection.emit (node:events:517:28) at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:63:12) at Socket.emit (node:events:517:28) at TCP.<anonymous> (node:net:350:12) Emitted 'error' event on Client instance at: at Client._handleErrorEvent (/app/node_modules/pg/lib/client.js:341:10) at Connection.<anonymous> (/app/node_modules/pg/lib/client.js:150:16) at Object.onceWrapper (node:events:631:28) [... lines matching original stack trace ...] at TCP.<anonymous> (node:net:350:12) Node.js v18.18.2 npm WARN config production Use --omit=dev instead.
8 replies