Attached volume
franklinson
FREEOP

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.

Solved

16 Replies

medim
MODERATOR

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.


franklinson
FREEOP

16 days ago

Its not clear to me


medim
MODERATOR

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.


franklinson
FREEOP

16 days ago

Alright
Thank you


franklinson
FREEOP

16 days ago

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


medim
MODERATOR

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.


medim
MODERATOR

16 days ago

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


medim
MODERATOR

16 days ago

Click on it -> Deployments tab -


medim
MODERATOR

16 days ago

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

1444001612707139600


franklinson
FREEOP

16 days ago

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


franklinson
FREEOP

16 days ago

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


medim
MODERATOR

16 days ago

yeah!


franklinson
FREEOP

16 days ago

Sure. Thanks


medim
MODERATOR

16 days ago

You can also take a look at the Serverless feature



franklinson
FREEOP

16 days ago

Alright, I will


Status changed to Solved medim 15 days ago


Loading...