Kosai106
Kosai106
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
@Brody I had to add the SESSION_SECRET_KEY as an env string in my turbo config. App is deployed and working now And now I'll finally be able to sleep
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Anyway, it's 2am here now, we already got over the main issue which is great! I'll figure out the rest sometime tomorrow after work. Thank you so much for your time @Brody as well as you @Angelo ! Appreciate all the effort 🙏
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Yes, I just double checked
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
The build logs don't indicate an issue
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
It's a Blitz.js app (Blitz is a layer on top of Next) https://blitzjs.com/
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
@nextbanana/web:start: Error: You must provide the SESSION_SECRET_KEY environment variable in production.
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
No description
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Yes
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Yes and no. The app launches, though it isn't picking up one of the environment variables so I get an error immediately lol
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
No description
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Haha good to know. Honestly I'm just happy to see this step at last
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Geez, the built image is 4.25GB
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Okay, instead of specifying the filter in the railway.json, I added separate npm scripts in my root package.json and used those commands instead. This seems to work, though I'm not sure why there would be a difference.
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Yes, I'm using Node 18.18.2 as specified in my .nvmrc
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
No description
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
I specified the command in my railway.json
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "npm run build --filter='@nextbanana/web'"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run start --filter='@nextbanana/web'",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "npm run build --filter='@nextbanana/web'"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run start --filter='@nextbanana/web'",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
It's failing to build one of the websites and not the one I'm specifing the build for using --filter='@nextbanana/web' it's trying to also build @nextbanana/landing for some reason
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Yeah that worked lol, I mean the build is still failing but it did find turbo now
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
Yeah trying that now
58 replies
RRailway
Created by angelo on 6/13/2024 in #✋|help
Build Possibly OOM on Builder V2
🤦‍♂️ I do have it installed, but it's as a dev dependency... That would explain it
58 replies