6 days ago
I'm trying to deploy a Medusa v2 headless commerce app to Railway to use as a personal development and testing environment.
I've got the app running locally using Docker and now I'm trying to get the admin panel deployed and working on Railway. My setup is a monorepo and I'm looking to use a railway.json file to handle the deployment configuration alongside a Docker-based build.
A few things I'm trying to figure out:
Whether to use the Dockerfile or Nixpacks for the Railway build given the monorepo structure
How to correctly scope the build to the backend package within the monorepo
Best way to wire up the railway.json predeploy command to run database migrations before startup
Has anyone deployed a similar Node.js/TypeScript monorepo setup to Railway and have any guides, example configs, or previous posts that could help? Any advice appreciated!
1 Replies
6 days ago
Apologies, we only correspond in English. Please open a new thread in English.
Status changed to Closed Railway • 6 days ago