ben
ben
RRailway
Created by ben on 7/1/2024 in #✋|help
How to copy files in parent directory into app source directory
I have a monorepo, and one of my railway services is the frontend, which lives under my /frontend directory However, I'm storing encrypted environment vars in my repo using dotenvx. These are shared across the services in my monorepo, so they live under /.env.production My build and start command look like this: dotenvx run -f ../.env.production -- bun run build dotenvx run -f ../.env.production -- bun run start the issue is, since I'm using Railway nixpacks and have my root directory set as /frontend, the /.env.production file doesn't get copied into the app source directory. Is there a way to copy this over?
19 replies