Is there an easy way to restart my app?
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.
7 Replies
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.
May I ask why you can't pause them?
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
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.)
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
The app is up always unless you delete it.
This would be nice. I've found that I can delete a deployment, which works well enough, but redeploying is a bit fiddly