Deploying Remix application in a bun monorepo

Tips & instructions on how to deploy a remix application in a bun monorepo to railway.

I recently started writing a full stack application that manages events & invitations and ran into a massive headache trying to deploy the Remix application. There may be easier solutions on other platforms (i.e Render, fly.io), but I could not figure it out. Thank you to Bug Artisan and his Medium article which assisted in my deployment.

Monorepo setup

For this blog project I am working with a Monorepo managed by the tool Turborepo. The apps included a Remix application, Elysia bun server, and shared packages. Here's a quick-start guide to get you up to speed.

bunx create-turbo@latest

bunx create-remix@latest apps/remix

bun install