#Is there an easy way to restart my app?

1 messages · Page 1 of 1 (latest)

smoky lantern
#

I feel like I'm probably missing something obvious, but how can I stop/start/restart my app? The only way I've found is to change some setting, which issues a redeploy, but that seems inefficient.

potent flicker
#

Click into your last active deploy. Then open the Command Palette and type "Restart"

#

We don't allow you to pause deploys but you can delete them or rollback to a previous deploy.

smoky lantern
#

May I ask why you can't pause them?

potent flicker
#

You may, no question too off-topic.

The product answer is: when a deploy is a paused. It still takes up Deployment Space on our infra as we need to store the state of the formerly running application. I think you’ll agree a user shouldn’t pay for a paused application. However, there is still a cost on the infra keeping a deploy in a suspended state. Hence why we don’t offer that option.

Philosophically: We view deployment state to be immutable. When you pause an application you introduce interesting side effects as well. It’s also partially why we don’t allow SSHing into deploys.

Related: https://docs.railway.app/deploy/deployments#deployment-lifecycle

Railway Docs

Documentation for Railway

#

Most production applications are designed to be up 24/7 so we try to optimize for that use-case. If an app needs to persist state, we recommend it being persisted on a DB or external Filesystem.

#

(Although we should add a re-deploy button in case someone wants to redeploy a latest or certain commit.)

fair leaf
#

So the app is up always? Would it go to inactive state when being unused to reduce execution hours?

potent flicker
#

The app is up always unless you delete it.