a year 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
a year 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.
a year 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
a year ago
Oh, you're talking about Railway service settings.
Don't worry, they will be saved if you don't delete that service.
a year ago
If you wanna pause a service just remove it's active deployment
a year ago
Click on it -> Deployments tab -
a year ago
Click on the service -> deployments tab -> three dots on the active deploy -> remove
a year ago
yeah!
a year ago
You can also take a look at the Serverless feature
Status changed to Solved medim • 12 months ago