Infrastructure 101: What is a server?

#documentation

You’ve been working hard on a Rails application. It’s living on your local machine, but now you’re ready to show the world. What’s next?

We need a server! A piece of hardware which can download your Rails app, run it, and allow people to access it. There are many kinds of servers. When I was doing research, the term “server” was losing all meaning.

We’ll focus on cloud servers, since that’s what most hobby projects would use. You can spin up a cloud server through the provider UI, or through an Infrastructure as Code tool like Terraform. Once the server is up and running, the next steps will be to load your application. I’ll leave that for the next post!


P.S. In most cases, especially if you’re a solo dev trying to get something running quickly, I’d recommend Fly.io. Fly.io is an infrastructure as a service (IaaS) platform. It has a simple deploy process, fly launch && fly deploy, and is cheaper than Heroku. Here’s the guide to getting Rails up and running with Fly.io.

Want to stay connected?

Subscribe to my newsletter

Weekly, bite-sized, practical tips and insights that have meaningfully improved how I code, design, and write.

No spam. Unsubscribe anytime.