Mike Carbone
Mike Carbone
RRailway
Created by Mike Carbone on 6/18/2024 in #✋|help
Slow builds? Basic express app taking over 5mins
ProjectID 81e80791-b4e2-409c-818d-20d02728cc39
21 replies
RRailway
Created by Mike Carbone on 6/5/2024 in #✋|help
Railway dashboard - Broken preview for JSON column types in Postgres databases
No description
7 replies
RRailway
Created by Mike Carbone on 11/15/2023 in #✋|help
No more Query tab?
On postgres tables there used to be a query tab where you could run SQL commands. Has it moved? Been removed? I don't see it on my interface anyore, which makes me sad
8 replies
RRailway
Created by Mike Carbone on 11/30/2022 in #✋|help
Builds hanging?
9 replies
RRailway
Created by Mike Carbone on 10/31/2022 in #✋|help
Payment failing due to ZIP code verification?
I'm trying to upgrade my plan but the payment keeps failing. I know the card is good, all of the info is correct, and there are sufficient funds. Any help?
6 replies
RRailway
Created by Mike Carbone on 10/13/2022 in #✋|help
Railway Vercel integration, failing to connect
Hey! So I'm using Railway to host my DB, project hosted on Vercel. I just set up a staging environment in Railway so that my preview deployments in Vercel don't mess with the data in my production database. However, the builds fail to connect to Railway since installing the integration. Here is the error: error: Error validating datasource db: the URL must start with the protocol postgresql:// or postgres:// I suspect the integration is dynamically setting the DB url connection string, however it's not supplying it in the correct format? I'm not sure. There isn't a whole lot of options in the integration configuration. Can anyone point me to more details / documentation or help solve this issue? Thanks! Btw, using Redwood JS as a framework, which uses Prisma under the hood. So technically that error is coming from Prisma. Other error details: ``` Error: Schema validation error - Error (query-engine-node-api library) Error code: P1012 error: Error validating datasource db: the URL must start with the protocol postgresql:// or postgres://`. ```
14 replies
RRailway
Created by Mike Carbone on 9/26/2022 in #✋|help
Application error hosting Express server
Hi! This is my first time setting up a Railway project. I'm trying to host an express server on Railway, and after configuring the port setup, I get an application error when viewing from the Railway generated URL. I followed the instructions here: https://docs.railway.app/deploy/exposing-your-app Here is my server code:
const port = process.env.IS_RAILWAY ? '0.0.0.0:' + process.env.PORT : process.env.PORT || 3333;
...
app.listen(port, () => console.log(`Server runnning on port ${port}!`));
const port = process.env.IS_RAILWAY ? '0.0.0.0:' + process.env.PORT : process.env.PORT || 3333;
...
app.listen(port, () => console.log(`Server runnning on port ${port}!`));
In Railway, everything deploys correctly and my logs look good:
npm WARN config production Use `--omit=dev` instead.
> arcade-backend@0.0.1 start
> node server.js
Cloud storage access complete: arcade-app
Server runnning on port 0.0.0.0:6826!
MongoDB Connected...
npm WARN config production Use `--omit=dev` instead.
> arcade-backend@0.0.1 start
> node server.js
Cloud storage access complete: arcade-app
Server runnning on port 0.0.0.0:6826!
MongoDB Connected...
By setting up that configuration, I was able to generate a Railway URL, however when navigating to that URL, I see an application error:
Application Error

Is your app correctly listening on $PORT?

View the deployment below to check for errors
Application Error

Is your app correctly listening on $PORT?

View the deployment below to check for errors
Any ideas? Thanks!
19 replies