a year ago
I'm using uv for running my project. Is it possible to use this during railway deployment?
Pinned Solution
a year ago
It should just work out of the box if a uv.lock is detected. Maybe try using Railpack instead of nixpacks
5 Replies
a year ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Correct deploy using Docker
- 🧵 /bin/bash: line 1: uv: command not found
- 📚 GitHub Actions Post-Deploy
If you find the answer from one of these, please let us know by solving the thread!
a year ago
It should just work out of the box if a uv.lock is detected. Maybe try using Railpack instead of nixpacks
uxuz
Hey, this is possible <https://railpack.com/languages/python/#package-managers>.
a year ago
Thank you! It worked!
For first time railway users reading this, just go to the service's settings > Under build > change the Nixpacks (default) to Railpack
If you're using Gitlab make sure to do this first in your project's CLI:
- Create Empty Service
- Under Build Settings, change Nixpacks to Railpack.
- Install Railway: bash <(curl -fsSL cli.new)
- Login to Railway: railway login
- Initialize Railway project: railway init
- Push your code to railway: railway up
markwitt1
It should just work out of the box if a uv.lock is detected. Maybe try using Railpack instead of nixpacks
a year ago
Thanks this is the right solution. As long as you do "uv init" everything will go smoothly. Railpack worked!
Status changed to Solved uxuz • 11 months ago