R
Railway

✋|help

Ephemeral storage concern

Zzgmg928/30/2023
Hi I want to do programmatic NPM publishes using a Railway service I will need to basically use shell commands to write files to disk, possibly pack them, and then programmatically publish using child processes I guess

My question is in the context of a Railway service, during the lifecycle of the service, can I rely on writing to disk? I understand storage is generally ephemeral so it's all scoped to the deploy of a service, so my question specifically is -- during the lifecycle of a deploy can I rely on writing and reading from disk just like a VM? Any caveats or concerns or specific blog posts I should read?

Thank you
Solution:
the files will persist for the lifespan of the deployment that created them
Jump to solution
Zzgmg928/30/2023
N/A
Solution
Bbrody1928/30/2023
the files will persist for the lifespan of the deployment that created them
Zzgmg928/30/2023
Thanks! I figured as much but wnated to ask before I messed around and found out
Bbrody1928/30/2023
haha no problem
and thers always storage volumes if you need your files to persist across deployments
Zzgmg928/30/2023
I did see that! Definitely makes me feel like it's not really a big deal if I needed something more
Thanks!

Looking for more? Join the community!

Recommended Posts
redploy after pushin to github not working anymoreit stopped to redeploy my appProject failing to deploy - 'no space available'Project: 13b3222b-eb44-433c-ad71-9174aa430a7d Has been deploying fine but started to complain about"Waiting" to deploy for 18 hours? Am I doing something wrong?I'm trying to move an app I deployed personally to a new account by setting up a new account and newQ: Help with Deploying a Medusa Server to RailwaySo, it keeps saying server crashed, but in the logs, nothing seems to be an issue. Been at it backHow do i move my project under the pro plan i just moved to?I just migrated from hobby to Pro - how do i move my projects under this? it says i need an active sDeploy appwrite on railway apphow to deploy appwrite in railway app ? , as fullstack i really like appwrite as backend and Next jsCurrent usage is $ 3.13 but current bill $5.00Please let me know how it's works, should I pay $5 for next month Project: af5712a6-cd8f-4b70-93f8-1Cannot create code snapshot right nowCannot create code snapshot right now, please review your last commit or try again If this error perrailway mediasoup portsHello, can I run mediasoup on railway? I have this errors when I try to run it. ``` Error: port binrailway cache not clearing despite NIXPACKS_NO_CACHEas title says. my railway server is not deploying without using cache.Security Page for RailwayDoes Railway have a privacy/security page that we could reference to fulfill requirements from custoBig memory usageI have a nodejs app running some tasks and it seems like the ram is increadibly high in the railway Cannot terminate old instanceI have an old instance running alongside the latest one, and I cannot find a way to terminate it thrGitHub deployment triggers became inactiveDeployment trigger to main branch became inactive, I am on a paid plan.no build errors but serve command keeps crashingHi, I’m new to nx workspace, nest and railways.app. I did some changes and I pushed them to my GitHTemplate variable function ${{ secret() }} broken for new template deploysHey, I have a plausible analytics template on railway. I just got an issue on my GitHub repo for theRepo changes not being deployed automaticallyHi, I've made some fixes on my GitHub repository and the changes are not being deployed automaticallConnecting to custom postgres instanceHello! I have just set up a postgres service with custom dockerfile because I'm starting a new proje2 days in a row 7am server stops respondingI have a weird issue with my deployment. Nothing like that happened before. For the last 2 days aroui need help setting up my discord boti need someone to help me configure the database [ i am extremely new to this ]