How can I stop an app?
I have an app running, and it's consuming my free tier hours even when not used. Is there a way to stop or hibernate it when not being used?
32 Replies
Project ID:
c17693fa-8f81-4f00-ad4d-8f231f687806
c17693fa-8f81-4f00-ad4d-8f231f687806
remove the deployment, 3 dots > remove
^ Can only be done manually
And that won't erase my DB or anything until I deploy it again?
Then push a new commit to restart your app
databases are erased on every restart
so no, you won’t be able to stop your app
at least not without wiping your database
But if I only remove the App not the DB, does it wipe the DB too?
the trial plan is meant to be just that - a trial of the service
if you want 24/7 runtime you’ll have to upgrade
both take up hours when online
no, but your hours will keep being consumed
Oh I see
And If hours run out, it gets paused till next month, or everything gets wiped?
it’ll just be paused until the first of the month
That is awesome
And is there a way to simulate costs? For example, let's say my app runs my 500 hours, and I only consumed X out of my 5 credits, is there a way to check beforehand how much it would cost to increase those 500 hours (roughly 20 days) to 31 days?
once your app has been online for 48 hours an accurate estimate will be available here
https://railway.app/account/usage
So does this mean that it would, as of now, cost 0.32 dollars a month?
exactly
Holy, I can't believe no other site has something as simple and effective as this
that number does fluctuate with usage though, it’s estimated based on the current usage of your app
looks like your app isn’t doing too much atm
I had to go crazy trying to understand pricing on other sites, gotta congratulate your team!
yeah, it's kinda lightweight, only worrying part is DB wise, that spike was just the DB initialization once it was deployed
for sure! that’s one of the highlights of Railway imo
I'll keep testing it with the free trial to get a better estimate, but I'm loving it already, thanks a lot!
I should clarify, that estimated costs number is until end of momth
not sure when you started your app, but you won’t get a full picture of how much it’ll cost until the first of the month
but you can get a rough estimate by multiplying that number by 30/(number of days left +number of days it’s been active already)
Oh, that is a daily cost estimate?
So it would actually be ~0.32$ * 31
No, it’s the estimated total cost at end of month
it’ll be 0.32$ * (30/(6+# days already active))
So, best way to get the most accurate result would be to wait till the 1st of the month when it resets the free time, and use it until that time runs out?
If you’re looking for an absolute most accurate number, yes
but you’ll have a pretty accurate estimate by the 1st
So that "estimate" number it gives must me multiplied by each day left in the month?
No
just plug in that formula and you’ll get an accurate estimate
Okay, that gives roughly 4.7 $
If I understood the pricing correctly, it states that first 5$ of each month are "free"?
I mean, because of this
Yup, that’s how it works
I would note that it really does look like your app has had no fluctuation in the CPU usage since your db was initialize so I would be cautious about saying it will cost nothing
assuming someone is going to be using your app
Yeah, I used it all night to test it and do heavy operations on it, and it only fluctuated between 0.2 and 0.1 usage (when initialization was a 1.8 spike)
But thanks anyway for the clarification! It helped a lot!
No prob, welcome to railway!