rpuls
How to copy entire build/deploy log?
I still havent figured out how I can copy the entire log. If I select it all and ctrl+c it only gets what visible in the overflow scroll container.
I have, once too many times, copy pasted it in parts...... but today I have a log that are longer than my patience for copy pasting it it bits
23 replies
Need help configuring nickspacks
Hi, I want the following to happen,
npm install
npm run build
npm run init
npm run start
This is my nickspacks file:
But when I deploy, the nickspacks plan looks like this:
╔═════════ Nixpacks v1.29.0 ══════════╗
║ setup │ nodejs_22, yarn-1_x ║
║─────────────────────────────────────║
║ start │ npm run init ║
║ │ npm run start ║
║─────────────────────────────────────║
║ install │ npm install -g corepack ║
║ │ corepack enable ║
║ │ corepack prepare [email protected] --activate║
║ │ npm install ║
║──────────────────────────────────────║
║ build │ npm run build ║
║──────────────────────────────────────║
║ start │ yarn run start ║
╚═══════════════════════════════╝
I have not set a custom start command
- why does it put my start commands before install?
- where does the last yarn command come from?
Because of the order of things my project doesn build correctly, so how can I get the order right?
26 replies
Need help understanding storage volumes better.
I have added a storage volume to my service, and I set the mount path to
/static
. After app has finished building the volume is 149mb in the metrics chart.
In my node app, I upload some files, but the metric chart doesn't change it still says 149MB - so I think my files aren't ending up in the volume.
however, when I try url my-railway.url/static/my-file.png
I do see the image i just uploaded.
When I redeploy my service, my file is no longer visible in my app UI, nor on url my-rwailway.url/static/my-file.png
When I run my project locally, and uploade a file, it is placed in <node-project-root>/static/filename.etx
How can I find out where on disc my files are placed on production?
Thanks!8 replies
Service depending on secret from other service - how to share value between services?
Hi,
I have a project with 2 separate node services. service A programatically generates a unique secret (api key) first time it is build, and saves it to a postgres database.
srvice B - starts building right after service A has finished building, and service B depends on the api key from service A, to build - as the two services communicates during service B build. Normally I would pass it via environment variables, but since it is generated programatically from service A, that is not an option.
I would prefer not giving service B database access.
Currently I am exposing the api key on a endpoint in service A, and fetching it from service B with a script before build starts.
So I do have a working solution. But I would prefer not exposing secrets on an endpoint, and ideally pass the value from A to B in a smoother way.
I was hoping to be able to set a Railway project wide global value, that I can read from all other serviced - like a shared environment variable. But it is my understading that it is not possible to programatically set environment variables from within services..
I'm looking for inspiration and ideas - please suggest! 🙂
7 replies
How can I copy the full build log?
If I select all the text, and press ctrl+c I will only get the text on clipboard that is visible on the viewport for some reason....
The log i need is maybe 15 times larger than the full viewport, so copy pasting in bits is too big of a hassle.
Any idea how I can copy or export the logs?
5 replies
Assets (images) uploaded via app to service cointainer - how persistent are they?
Hi, I'm playing around with node.js app, it has a frontend with a CMS, and in there I can upload images that will be served for end users on a different frontend. The app builds based on a dockerfile, and some npm scripts. I would expect it to build from clean slate each time, but I just did an experiment, where I uploaded an asset, then redeployed the backend, and the asset was still servers after the deploy has finished. I tried clearing page chace before refreshing yes.
The files are put in /statis/assets/*
Can I count on disk persistence? Or should I implement a 3rd party assest storage solution?
8 replies
Failing to spin up default template Next Prisma tRPC
Hello there peeps! I'm trying to spin up a Next Prisma tRPC template from scratch, but sadly the defualt template fails in the fronted deploy step, due to a npm conflict: While resolving: [email protected]
Find it odd that a default template would fail - what could be wrong here?
Project ID:
fa498e03-4d11-491e-8620-bcb80fb6f8c6
13 replies