Does Railway support workpspaces (pnpm) in a monorepo for Deno?
alysunshyn
FREEOP

2 months ago

I have a monorepo installation with folder structure where a script lies in a workspace /packages which is outside of the /services folder that holds the Deno service app.

-/

-/apps

-/packages

-/services

I was trying to access the script using the code below

// Utils From Packages
export { getEnv } from "@workspace/env";

This didn't work and I had to move the script to within the app folder as below

// Utils
export { getEnv } from "./utils/getEnv.js";

This worked. But I was curious to know if that's how it is

OR

Is there a way I can keep some scripts in my monorepo's /packages folder and still make it work on railway where I have to give the entry point as /services ?

Please advise.

Regards,

Alim

Solved$10 Bounty

Pinned Solution

IIRC no, unless you have set your root directory to / in your service.

You can, however, use a Dockerfile to specify which directory to build, while being able to access scripts from other directories.

1 Replies

Status changed to Open Railway about 2 months ago


IIRC no, unless you have set your root directory to / in your service.

You can, however, use a Dockerfile to specify which directory to build, while being able to access scripts from other directories.


Status changed to Solved 0x5b62656e5d 26 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...