Service Deploying Issue with Turborepo and Dotnet apps in same Github Repository

This might sound a little cursed but my team has a Turborepo and a Dotnet app in the same github repository. This is a continuation of this thread. The directory looks something like this:
root
├── /apps
│ ├── /admin (sveltekit app)
│ ├── /client (sveltekit app)
│ ├── /mtServer (C# server)
│ └── /PassFail (Dotnet app)
├── /packages
├── package.json
├── pnpm-lock.yaml
└── turbo.json
root
├── /apps
│ ├── /admin (sveltekit app)
│ ├── /client (sveltekit app)
│ ├── /mtServer (C# server)
│ └── /PassFail (Dotnet app)
├── /packages
├── package.json
├── pnpm-lock.yaml
└── turbo.json
When trying to deploy one of sveltekit apps with turborepo, setting the service directory to /, Nixpacks detects the root as a Dotnet app even though the Dotnet app is in the apps directory (see screenshot).
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
No description
25 Replies
Percy
Percy5mo ago
Project ID: 4905d78e-bce9-4afd-bdff-83f792d7981c
Mark Khoo
Mark Khoo5mo ago
4905d78e-bce9-4afd-bdff-83f792d7981c
Brody
Brody5mo ago
okay let's just get something out of the way, delete that service and deploy another service instead, there have been cases of a service getting "stuck" on an incorrect provider
Mark Khoo
Mark Khoo5mo ago
i've started a new service from a GitHub Repo
Mark Khoo
Mark Khoo5mo ago
without changing anything in the settings besides the branch I get this output. The root directory is still /.
No description
Brody
Brody5mo ago
then there is something in the root directory that's causing nixpacks to think the project is dotnet
Mark Khoo
Mark Khoo5mo ago
i can't figure out what but i think a solution would be to move around the directories...
Brody
Brody5mo ago
show me a screenshot of the root of the repo?
Mark Khoo
Mark Khoo5mo ago
No description
Brody
Brody5mo ago
looks fine to me, maybe railway is trying to do some shenanigans with your turbo project for you
Mark Khoo
Mark Khoo5mo ago
im thinking about putting the turborepo in it's own dir and making that dir the root directory... will try it'
Mark Khoo
Mark Khoo5mo ago
okay putting the turborepo in it's own dir seemed to work. Now I just need to figure out how to get a service for my turborepo apps.
No description
Mark Khoo
Mark Khoo5mo ago
the repo now looks like:
root
├── /mtServer (C++ server)
├── /PassFail (Dotnet app)
└── /turborepo
├── /apps
│ ├── /admin (sveltekit app)
│ └── /client (sveltekit app)
├── /packages
├── package.json
├── pnpm-lock.yaml
└── turbo.json
root
├── /mtServer (C++ server)
├── /PassFail (Dotnet app)
└── /turborepo
├── /apps
│ ├── /admin (sveltekit app)
│ └── /client (sveltekit app)
├── /packages
├── package.json
├── pnpm-lock.yaml
└── turbo.json
this worked but i can't seem to mark this as the solution the deployment works! but name my app crashes 😅 on to new problems
Brody
Brody5mo ago
app crashes?
Mark Khoo
Mark Khoo5mo ago
ran out of memory i have a hobby tier hopefully that should fix it? unless i have to specify size in package.json
Brody
Brody5mo ago
hobby plan gets you 8gb of memory per service nothing needs to be specified anywhere
Mark Khoo
Mark Khoo5mo ago
after i get more ram I now see I have a problem with the start script... I actually don't know what the start script should be for a svelte-kit app on turbo repo should be...
Brody
Brody5mo ago
depends, does it build a fully static site or...?
Mark Khoo
Mark Khoo5mo ago
it's not a fully static site
Brody
Brody5mo ago
then you need to use the node adapter
Mark Khoo
Mark Khoo5mo ago
Thank you very much @Brody ... if i could get you a coffee I would
Brody
Brody5mo ago
haha no need thank you for the thought
Mark Khoo
Mark Khoo5mo ago
also the answer overflow bot doesn't show up in apps when I right click a message so I can mark this thread as solved 😅
Brody
Brody5mo ago
users cant mark their thread as solved anymore (yes i know it still tells you to) had far too many users marking the complete wrong thing as the answer and for this thread im going to just tag the entire thread as solved, because i dont think any one single message is the correct solution
Mark Khoo
Mark Khoo5mo ago
sounds good