r/SpringBoot • u/AromaticDrama6075 • Jan 05 '26
Question Free server to deploy?
Hello there.
I'm a new developer and I don't have too much experience. I want to deploy a small app it's more for my portfolio than a real app.
I'm looking for a free/cheap server to deploy. I've tried with Render, but (maybe I'm doing something wrong), the first time I use the app after a long time, it takes its time to run, like if it is "sleeping".
I've also tried using Railway, paying the 5 dollars plan, but after the whole month, it charges me more money on the card.
I need help, I'm just starting
20
Upvotes
8
u/pconrad0 Jan 05 '26
If you are looking for a free service that can handle a Spring Boot app, render is the only one I'm aware of.
And that initial wake up delay is going to be what you get at that price point.
If you don't want the initial delay, you are asking for someone to pay to keep your app in memory all the time on a server. Doing that costs money.
2
u/East-Association-421 Jan 05 '26
I pay for a 5 dollar VPS through Contabo and I’m running Coolify on top so I don’t have to SSH in and manually deploy my services. It’s been working pretty effectively considering the fact that it handles a lot of my portfolio projects.
You should be reasonably fine in terms of scale on this too; I have a couple services, one that powers 500 users and one that powers 250; both have an exposed API along with background services (in their respective languages), a Postgres database, and a Redis client and it’s still been chugging along just fine!
5
u/bikeram Jan 05 '26
Deploy a static site on cloudflare. Then use a cloudflare tunnel to point to your app running on a local computer. Handle your 400s/500s gracefully on your static site if your local deployment isn’t available.
You could double down on your error pages and say some like local server sleeping/ local SaaS budget exceeded.
5
u/d-k-Brazz Jan 05 '26
render.com
koyeb.com
3
u/Loud_Respond9364 Jan 05 '26
I have tried Koyeb, but the app still goes to sleep after inactivity. If you're a student, you can get $200 in credits (for one year) on DigitalOcean via the GitHub Student Developer Pack and use their Droplets. I believe the starting price is $7/month.
2
u/BannockHatesReddit_ Jan 05 '26
Either self host or forget about it. Server hosting costs money. Cough up $20 a month and you'll have a server capable of running all your portfolio projects.
2
u/bhlowe Jan 05 '26
Does AWS still have an EC2 free tier? Good experience learning AWS, DigitalOcean and/ or Google Cloud. A few dollars to run for a little bit, stop when not needed.
2
u/GodEmperorDuterte Jan 05 '26
AWS free tier actully free ? and we can stop the instace right,can it will help to reduce cost?
2
u/Hous3Fre4k Jan 05 '26
Maybe check oracle cloud free tier. A couple of years ago you could get a small server for free. Don’t know if still true though.
1
u/MousTN Jan 05 '26
wait theres free deployment servers? i thought the ones who r free , are just to deploy standalone frontend app
1
u/mushiaddai Aug 25 '26
try hugging face spaces and check out this video to help w/ python deployment if u need it. hope this helps! https://youtu.be/4cfMn7WyoOU