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

33 messages · Page 1 of 1 (latest)

eternal delta
#

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](#1171478849352118282 message). 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

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 is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

cloud citrusBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

naive helmBOT
#

Project ID: 4905d78e-bce9-4afd-bdff-83f792d7981c

eternal delta
#

4905d78e-bce9-4afd-bdff-83f792d7981c

gilded sleet
#

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

eternal delta
#

i've started a new service from a GitHub Repo

#

without changing anything in the settings besides the branch I get this output. The root directory is still /.

gilded sleet
#

then there is something in the root directory that's causing nixpacks to think the project is dotnet

eternal delta
#

i can't figure out what but i think a solution would be to move around the directories...

gilded sleet
#

show me a screenshot of the root of the repo?

gilded sleet
#

looks fine to me, maybe railway is trying to do some shenanigans with your turbo project for you

eternal delta
#

im thinking about putting the turborepo in it's own dir and making that dir the root directory... will try it'

eternal delta
#

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.

#

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
eternal delta
#

the deployment works! but name my app crashes 😅 on to new problems

gilded sleet
#

app crashes?

eternal delta
#

ran out of memory

#

i have a hobby tier hopefully that should fix it?

#

unless i have to specify size in package.json

gilded sleet
#

hobby plan gets you 8gb of memory per service

#

nothing needs to be specified anywhere

eternal delta
#

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...

gilded sleet
#

depends, does it build a fully static site or...?

eternal delta
#

it's not a fully static site

gilded sleet
#

then you need to use the node adapter

eternal delta
#

Thank you very much @gilded sleet ... if i could get you a coffee I would

gilded sleet
#

haha no need thank you for the thought

eternal delta
#

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 😅

gilded sleet
#

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