Attached volume
franklinson
PROOP

3 months 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.

Solved

16 Replies

3 months 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.


franklinson
PROOP

3 months ago

Its not clear to me


3 months 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.


franklinson
PROOP

3 months ago

Alright
Thank you


franklinson
PROOP

3 months ago

My concern isnt data loss per say, its about how I setup the domain, predeploy, builds etc


3 months ago

Oh, you're talking about Railway service settings.
Don't worry, they will be saved if you don't delete that service.


3 months ago

If you wanna pause a service just remove it's active deployment


3 months ago

Click on it -> Deployments tab -


3 months ago

Click on the service -> deployments tab -> three dots on the active deploy -> remove

1444001612707139600


franklinson
PROOP

3 months ago

Oh great. So all I have to do is remove the current deployment thats all?


franklinson
PROOP

3 months ago

That means to bring it back, I have to redeploy it again right?


3 months ago

yeah!


franklinson
PROOP

3 months ago

Sure. Thanks


3 months ago

You can also take a look at the Serverless feature



franklinson
PROOP

3 months ago

Alright, I will


Status changed to Solved medim 3 months ago


Loading...