16 days ago
If I attached a volume to my web server, does it store my web server configurations and settings that if I need to restore it, it becomes easier? Wanted to pause a server but the only option I have is to delete and bring it back after a while. So want to know if "attach volume" will save my settings to prevent me from doing a whole lot settings when I am bringing it back.
16 Replies
16 days ago
Volume only persists files you write to it, what is the use case of this 'web server config'?
Remember that you will need to redeploy your app after attaching a volume.
16 days ago
If by configurations, you're talking about config files inside your web server, then I'm not sure they will persist with a volume since they're probably rebuilt at every restart/redeploy.
If you're talking about files that you've uploaded through your own app, then mounting a volume to that path will persist those files between restart/redeploys.
Your concern is dataloss, by attaching a volume you will need to redeploy your service, that will cause an initial dataloss since you still don't persist any files.
My concern isnt data loss per say, its about how I setup the domain, predeploy, builds etc
16 days ago
Oh, you're talking about Railway service settings.
Don't worry, they will be saved if you don't delete that service.
16 days ago
If you wanna pause a service just remove it's active deployment
16 days ago
Click on it -> Deployments tab -
16 days ago
Click on the service -> deployments tab -> three dots on the active deploy -> remove

Oh great. So all I have to do is remove the current deployment thats all?
16 days ago
yeah!
16 days ago
You can also take a look at the Serverless feature
Status changed to Solved medim • 15 days ago