3 months ago
I have a github project with two node.js service. I would like to share memlib.js. The service root directory is /server and /enquiry respectively.
I tried to "cp" memlib.js in railway.json and package.json, but both doesn't work.
How can I do it?
repo-root/
├── memlib/
│ └── memlib.js
├── server/
│ └── server.js
└── enquiry/
└── enquiry.js
Pinned Solution
3 months ago
set a root directory for memlib via the service, and adjust your railway.json and package.json https://docs.railway.com/guides/monorepo
3 Replies
3 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 How do I connect services to share variables between services?
🧵 config-as-code questions regarding paths and configuration precedence
If you find the answer from one of these, please let us know by solving the thread!
3 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 3 months ago
3 months ago
set a root directory for memlib via the service, and adjust your railway.json and package.json https://docs.railway.com/guides/monorepo
2 months ago
I have got it works now. Thanks
Status changed to Solved brody • 3 months ago