a year ago
There's a similar thread at https://station.railway.com/questions/deploy-failed-undefined-variable-nixp-b9bcc7f8 but no solution was posted when it was marked solved.
The console logs seem to point to an issue with Nixpacks not setting a variable for the dotnet runtime properly. I've tried changing the few settings on Railway that I have access to but it results in the same error.
5 Replies
Status changed to Awaiting User Response Railway • about 1 year ago
a year ago
Nixpacks by default tries to build using net6 but my project is net9, so I try setting NIXPACKS_CSHARP_SDK_VERSION to 9 or 9.0 or 9.0.1 and get the error above.
Status changed to Awaiting Railway Response Railway • about 1 year ago
a year ago
Could you use a nixpacks plan and set the provider/apt package/etc from there ? https://nixpacks.com/docs/configuration/file
Status changed to Awaiting User Response Railway • about 1 year ago
a year ago
Tried including a nixpacks.toml but that also gave the same error. So I gave up and made a dockerfile like I should have originally. It's up and running now thanks.
Status changed to Awaiting Railway Response Railway • about 1 year ago
a year ago
Sorry for the trouble, nixpacks/nixos can be painful. Railpack should help with this tremendously, but it's still early days.
Happy to hear you're back up and running !
Status changed to Awaiting User Response Railway • about 1 year ago
Status changed to Solved nico • about 1 year ago