Live data from Hacker News

Ask HN: Solo-preneurs, how do you DevOps to save time?

news.ycombinator.com

291–300 of 328 posts

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#291

I run a solo SaaS product with 15,000+ users. I use the "arcane/wizardry" techniques still. I simply run "make deploy" and a new production build is made and rsync'd to production. Then the script executes a "deploy.sh" on the production server which reloads the system process to pick up the new binary. Poof.

And if your singular production server catches on fire?

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#292
A single VPS server with a GitHub action that builds and syncs code to the server using Git, with a bash one-liner to restart the server. Properly configured this can serve millions of requests.

A cron job which saves a copy of the DB to S3.

That’s it.

If you’re focused on anything more with no employees you’re probably wasting your time.

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#294
post #21

This seems to (strangely) be an unpopular answer here, but I've spent a weekend to terraform everything. I run a couple of different projects which are yet to pick-up traction, so prototyping quickly is essential. What I have now is terraform on Github which handles Networking (VPC, subnets), ECS/ECR, ALB for my backend and S3/CloudFront for frontend. Everything is on AWS because I'm familiar with it, so it's faster.…

I spent a lot of time on Terraform + Packer code to set up VPC, RDS, Route53, AWS Cert Manager, ELB, EC2, my API server, S3, CloudFront, and CloudWatch. The setup had a lot of complexity and footguns. Plus there was the risk of accidentally running up a huge AWS bill.

Later, I realized that Heroku + Netlify are good enough. Switching was easy. The hardest part was admitting to myself that I had wasted so much time on AWS. I felt relieved after I deleted the Terraform and Packer code.

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#295
Solo founder working on 2 Shopify apps. I tried to keep my setup simple with almost no build process: 1. 1 dev VM, 2 prod VM. ~$30 / m 2. Python / Django apps hosted with docker compose 3. Git pull to prod, just reload gunicorn to deploy most of the time unless I need to add new python libraries 4. Auto backup db daily with a docker container. Weekly backup by digital ocean

No k8s for sure.

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#296
For the longest time I have used capistrano to deploy my projects on VPS from Cloud providers. It served me well but wasn't as convenient.

At the start of this year I joined hands with Chris on https://hatchbox.io to work on cost effective deployment service. We are putting together all the deployment best practices we've learned over the years into this product in a cost effective way.

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#297

Earlier quoted context omitted.

My experience says to backup to a different vendor.

This is part of my threat model. Is there an easy way to do this with e.g. hosted RDS or block storage device snapshots?

In my case I'm dumping + zipping the entire database at the application level. In my case is as simple as adding a library [1], scheduling the job and transferring to AWS S3 (my main application is on DigitalOcean)

[1] https://github.com/spatie/laravel-backup

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#298
post #151

Because everyone here is hell bent on "spooky arcane oldhat sysadmin deploy techniques", I'll share my setup using k8s. - CI on github actions - Project management on post-its (short) and READMEs (long term) - deployment is done by a github action trigger on the `main` branch - Hosting is using AKS, GKE, or on-prem k3s on a raspberry pi. Want to restart a service ? just kill the pods. - Devops took about 2 days of wo…

> Note: this is highly effective because I already had significant K8s experience, so, if you're still learning about what Ingress-Controller to choose for your OIDC proxy, then don't go that route. What would you recommend instead ?

Learn about kubernetes for 6 to 9 months, full-time, and come back to it.

You have a lot of freelance work and devops positions that will give you that experience. You shouldn't try to do this alone, you need guidance to understand how this ecosystem works.

Re: Ask HN: Solo-preneurs, how do you DevOps to save time?

#300
post #151

Because everyone here is hell bent on "spooky arcane oldhat sysadmin deploy techniques", I'll share my setup using k8s. - CI on github actions - Project management on post-its (short) and READMEs (long term) - deployment is done by a github action trigger on the `main` branch - Hosting is using AKS, GKE, or on-prem k3s on a raspberry pi. Want to restart a service ? just kill the pods. - Devops took about 2 days of wo…

Hey, this is pretty cool (I am doing the oldhat stuff, so interesting to hear about something different)

>> Job scheduling is built-in (and -fuck- logs are much more accessible on a failed job container than in a custom cron + sh solution)

Can you expand on this? How do you handle logs?

Post reply on HN