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
angelo
angelo3y ago
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.
tiltowait
tiltowaitOP3y ago
May I ask why you can't pause them?
angelo
angelo3y ago
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
Deployments | Railway Docs
Documentation for Railway
angelo
angelo3y ago
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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
angelo
angelo3y ago
The app is up always unless you delete it.
tiltowait
tiltowaitOP3y ago
This would be nice. I've found that I can delete a deployment, which works well enough, but redeploying is a bit fiddly
Want results from more Discord servers?
Add your server