alex.lazar
alex.lazar
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
well, let's hope the weekend bestows me with new ideas. Thanks a lot for the help Brody
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
So my idea of bundling the underlying packages with tsup didn't work, and it cost me half a day, lol. Scratched all that 😓
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
ruled that out then
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
I have a potentially stupid guess that the issue may happen because railway tries to install packages with Nixpacks and our repo uses yarn workspaces 🧐
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
I'll come back to you after I try that tomorrow. Here's hoping. Thanks for the help Brody 🙏🏻
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
P.S.: I didn't expect a quick answer when I opened this
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
Can we keep this post open until tomorrow?
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
I have an idea to change the way the packages get built and imported, but it's more work than I can do now (4 am here)
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
weird
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
apparently it's trying to install db-queries (a local package) from npm
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
that said, it unfortunately still fails with the same error 😓
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
vscode will auto complete for me
github copilot is AMAZING EDIT: aaaand, that's not what happened lol
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
Thanks!
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
oh, okay
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
what was wrong?
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
Any docs on this in case I need to further play with it without bothering anybody?
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
Sounds good to me
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
so, I'd have:
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "cd ../../ && yarn build --filter=data...",
"installCommand": "cd ../.. && yarn install",
"startCommand": "yarn start"
},
"deploy": {
"numReplicas": 1,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "cd ../../ && yarn build --filter=data...",
"installCommand": "cd ../.. && yarn install",
"startCommand": "yarn start"
},
"deploy": {
"numReplicas": 1,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
right?
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
This is actually pretty cool and easy
74 replies
RRailway
Created by alex.lazar on 6/8/2023 in #✋|help
Deploying a Node js app from a turbo monorepo
right?
74 replies