My Website Runs Itself: The Complete Automation Stack Behind a Hands-Off Business
Automation Projects admin • • 16 min read • 27 views

My Website Runs Itself: The Complete Automation Stack Behind a Hands-Off Business

Last month my website billed customers, published pages, and backed itself up while I logged about four hours of work. Here is every layer of the automation stack, what each one costs, and the parts a human still owns.

What "Runs Itself" Actually Means

Last month I worked three hours and forty minutes on the website that pays me the most. During the same month it billed 85 subscribers, emailed every receipt, published eleven new pages, ran 240 scheduled jobs unattended, and backed itself up every night. I know the number precisely because my time-tracking app logs the sessions, and the number is boringly stable: between two and four hours a month, almost all of it judgment work rather than maintenance. A website that runs itself is not a fantasy and it is not zero humans. It is a small set of boring systems that do the watching, the shipping, and the invoicing so the human can show up only when judgment is actually required.

I want to be precise about the claim before we build anything, because "passive" is the most oversold word in this corner of the internet. My site, a PDF utilities site with a paid tier, still needs me. Customers occasionally write emails that no FAQ answers. Content drafts need an editor's eye. A pricing decision sits in my queue right now that no automation could sensibly make. What the automation stack actually did was remove the repetitive work: deploying, monitoring, invoicing, backing up, and publishing. Those five jobs used to cost me most of a day per week when I ran things manually in 2021, and they now cost about thirteen dollars a month in fixed infrastructure.

The architecture is five layers, and each one automates a single job I used to do by hand: hosting with continuous deployment, a scheduled content pipeline, monitoring with alerts, automated billing, and backups with tested restores. This article walks through the complete automation stack layer by layer, with the actual tools, costs, and failure stories, and it ends with the honest list of what still needs a human. If you build all five layers, you end up with something close to a hands-off business. If you build only the first three, you still end up with something radically better than a manual site, and that is where I would tell most people to start.

Layer 1: Hosting With Automatic Deploys

The foundation is that deploying a change costs nothing in attention. Every commit I push to the main branch goes through a pipeline on GitHub Actions: lint, unit tests, a build, a container image, and then a deploy to production, with zero-downtime releases so a deploy never takes the site offline. The whole sequence takes about four minutes, and it runs whether I am watching or asleep. The static front end of the site lives on Cloudflare Pages for free; the API and the Postgres database live on two small Fly.io machines in different regions, which costs about ten dollars a month.

The detail that matters most is not the deploy, it is the rollback. Every pipeline run produces a versioned image, and rolling back to the previous one is a single command or a single click, roughly ninety seconds end to end. When a deploy ships a bug despite the tests, and eventually one will, the answer is never "debug production under pressure". The answer is "roll back, then debug calmly". The pipeline also deploys a staging environment automatically from every pull request, so I can click a preview link before anything reaches customers, which is where roughly half of my would-be production bugs have died.

After the deploy itself, the pipeline runs a smoke test: it hits the health endpoint, requests one page, and calls one API route. If the smoke test fails within the first two minutes after a release, the pipeline rolls the deploy back automatically and pages me. I have watched this loop catch a broken database migration at two in the morning, revert, and leave a clean recovery note in the deploy log, all without me. That one incident justified every hour I spent on CI, and it is the single biggest reason the rest of the stack can be trusted to run unattended.

Layer 2: The Automated Content Pipeline

The site earns organic traffic, so content has to flow even when I am not writing. The pipeline has two halves: scheduled data refresh and a drafting queue. The data refresh is a nightly cron job that pulls fresh values the tools pages depend on, like file format support matrices and library versions, regenerates the affected pages, and redeploys the static front end if anything changed. It also rewrites comparison tables from a small YAML file, which means a product update becomes a content update with one commit. Stale pages are the quietest way to lose rankings, and this job means the site never quietly rots on the data side.

The drafting queue is the more interesting half, and the one I am most careful about. Saved searches and RSS feeds for topics I cover feed into a script that clusters the week's queries and drafts short outline notes for pages worth writing. The drafts land in a review queue, and every Sunday evening I spend about forty minutes editing, fact-checking, and approving or rejecting them. A publish webhook then triggers a rebuild and the page goes live on schedule. The machine proposes; the human disposes. I tried letting an auto-publish path run for one week as an experiment, caught a confidently wrong claim about PDF compression in a live draft, and turned auto-publish off permanently.

The lesson from that experiment is worth stating plainly: automation is excellent at consistency and terrible at judgment. The pipeline guarantees that a draft exists every week and that the data is fresh; it does not guarantee that the content is correct. Keeping the human checkpoint in the middle, with the publishing step automated on both sides of it, gives me the throughput of a schedule with the quality control of an editor. That is the honest shape of an automated content pipeline in 2025: not a content farm, a content conveyor with one inspector.

Layer 3: Monitoring and Alerts That Watch Everything Else

Automation without monitoring is a rumor, not a system. The monitoring layer has three jobs: check that the site is up, check that the jobs ran, and check that the other automations are telling the truth. The first job is conventional uptime monitoring: UptimeRobot's free tier pings the homepage and a real API endpoint every five minutes, with email and push alerts on failure, plus a separate monitor for SSL certificate expiry thirty days out. The endpoint it pings is a proper health check, not just a homepage, so it verifies the database connection, the disk space, and the job queue, meaning a site that loads but is functionally broken still triggers an alert.

The second job is watching the scheduled jobs, and it uses an old pattern with a great name: a dead man's switch. Every cron job on the server, including the backup job and the content refresh, pings a health check endpoint when it finishes. If the backup job has not checked in by 3:30 a.m., a monitor notices the silence and alerts me. This matters because silent cron death is the most common automation failure nobody talks about: after a server migration last year, my nightly jobs all stopped with no error message anywhere, and the dead man's switch was the only thing that caught it, four hours later, before a full day had passed without backups.

The third job is error tracking, which lives with Sentry. Exceptions arrive with stack traces and the request that caused them, grouped and deduplicated so one flaky endpoint does not page me sixty times. Alert rules are tuned deliberately: new issue types page me, known issues collect into a weekly digest email I read in five minutes on Monday. I also keep one auto-remediation, a restart rule for the API process when it exhausts memory, and I have complicated feelings about it, which I will explain in the failure section below, because automation that fixes problems can also hide them.

Layer 4: Automated Billing and Fulfillment

Billing is the layer people assume is hard, and it is honestly the part the platforms have solved. Checkout runs on Stripe: a customer clicks upgrade, pays on a hosted checkout page, and never touches my code with a credit card in it. The moment the subscription activates, a webhook hits my API, an idempotency check confirms the event is new, and the server generates the license key and API token, stores them, and sends the welcome email through a transactional email service. Renewals, receipts, and subscription cancellation are all events on the same webhook. The subscription lifecycle, which used to be a spreadsheet and a guilty conscience, is now a dozen event handlers totaling a few hundred lines of code.

Failed payments deserve their own mention, because they are where manual businesses quietly bleed. When a card expires, Stripe retries on its schedule and sends dunning emails on mine, and roughly a third of failing subscribers in my data recover themselves without me ever seeing a ticket. Without that automation, every one of those recoveries would have been either a lost customer or an awkward human email. At 85 subscribers, that is the difference of a few hundred dollars a month of revenue that simply never churns.

The two implementation details I would insist on, having learned both the hard way: use idempotency keys on every webhook handler, because payment platforms retry events and will deliver duplicates during an outage; and run a test-mode mirror of the whole billing loop before you trust it. My webhook handler once processed a duplicate subscription event and attempted to charge and double-provision a license; the idempotency check caught it, logged it, and moved on, and the test I wrote after that incident now runs in CI on every deploy. Automating money is safe exactly to the degree that you assume it will misbehave and test for that.

Layer 5: Backups With Restore Drills

Every layer above this one can fail loudly; backups fail silently, which is why they get their own discipline. Nightly, a job dumps the Postgres database, encrypts it, and pushes it with restic to Backblaze B2, where thirty days of versions are retained for about two dollars a month. The application code and infrastructure configuration live in git, which is itself a backup, and the entire server can be rebuilt from a repository and a runbook. Backups that are only on the server they are backing up do not count, a lesson the industry keeps relearning, and the offsite copy is non-negotiable.

Verification is layered the same way the monitoring layer works. A weekly script checks that the backup job checked in, that the newest archive is younger than 26 hours, and that its size is within a plausible range, then emails pass or fail. Every quarter, I do a full restore drill: spin up a clean environment from the runbook, restore the latest backup, point a smoke test at it, and confirm the data is actually there before tearing it all down. The drill is calendar-scheduled, because drills that depend on feeling motivated do not happen.

The first restore drill taught me more than any blog post could. The backup restored correctly, technically, and it took me two hours of improvising because my "runbook" was a paragraph of memory rather than a document. The restore worked in my head and barely worked on a fresh machine. I wrote down every step during the second drill, added the exact commands and one gotcha about environment variables, and the third drill ran in twenty-five minutes. A backup you have not restored is a superstition; a backup you have restored against the clock, three times, is a system.

The Complete Automation Stack on One Table

Here is the whole thing in one view, layer by layer, with the tools and the real monthly costs. I have switched components several times over the years, and the table reflects the current stable version; the pattern matters more than the specific brands. Every layer is replaceable, and several of them have free alternatives that work fine at small scale.

LayerToolWhat it automatesCost per month
Hosting and deploysFly.io, Cloudflare Pages, GitHub ActionsGit push to deploy, tests, previews, zero-downtime releases, auto-rollbackAbout $10
Content pipelineCron jobs, static site generator, webhook publishingNightly data refresh, draft queue, scheduled publishing, auto-redeploy$0
MonitoringUptimeRobot, Sentry, dead man's switchUptime pings, error tracking, job check-ins, SSL expiry, weekly digest$0
BillingStripe Checkout, webhooks, Resend emailCheckout, license provisioning, receipts, renewals, dunning, VAT via Stripe Tax2.9% + $0.30 per charge
Backupsrestic, Backblaze B2, runbookNightly encrypted backups, 30-day versions, weekly verification, quarterly drillsAbout $2

Add it up and the fixed bill is around thirteen dollars a month, plus transaction fees that only exist when revenue exists, which is my favorite kind of cost. The site's subscription revenue covers that roughly fifty times over, and even back when the site earned nothing, the total spend was less than a pizza per month. That ratio is the quiet argument for building an automation stack early: the cost is trivial, the discipline transfers to every project you build afterward, and the failure modes it prevents are the expensive kind.

What Still Needs a Human, and Where Automation Bit Me Back

The honest list first. Every month, the work that actually requires me falls into five buckets. Customer emails that the FAQ does not cover, about thirty minutes a month on average, and occasionally an extended exchange with a genuinely confused user. Content review, roughly forty minutes a week, editing drafts and checking facts. Alert and patch review, maybe thirty minutes a month, mostly reading the Sentry digest and merging reviewed dependency updates that Dependabot files as pull requests. Billing exceptions, fifteen minutes, mostly refunds and one manual invoice request a quarter. And strategic decisions, which cost whatever they cost: pricing, new features, whether to say yes to a partnership. That is the entire monthly workload behind a business that runs daily.

Now the failure stories, because automation that has never hurt you has not been used long enough. The worst one: my auto-restart rule quietly restarted the API process every time memory crept up, and it worked so well that I stopped looking. The restarts were masking a slow leak in an image processing path, and by the time I investigated a slightly odd restart pattern, the bug had been alive for five weeks. Automation that fixes a symptom will hide its cause with perfect diligence. I now alert on restart frequency, not just on downtime.

Two shorter ones. During a particularly noisy week of alerts from a third-party API, I muted notifications to focus, and of course that was the week the site had six hours of degraded response time that I learned about from a customer email rather than a monitor. Alert fatigue is a real failure mode, and the fix is tuning, not muting: I now route noisy non-critical alerts to a daily digest and keep paging alerts sacred, so the loud channel stays trusted. And a webhook event duplication, described in the billing section, was caught by an idempotency check that I only added because a mentor insisted. Every automation layer needs a meta-monitor asking whether the automation itself is healthy, and every fix needs a test that keeps it fixed.

How to Build Your Own Automation Stack in 30 Days

If you are starting from a manual site today, the order of construction matters more than the tools, and it is probably the reverse of what you expect. Automate the watchmen first, not the money. Here is the sequence I would follow, one layer per week, which is roughly how I rebuilt my own stack the second time.

  1. Week 1: monitoring. Set up uptime pings, a real health endpoint, SSL expiry alerts, and error tracking. You cannot automate anything safely until you would know, within minutes, that it broke.
  2. Week 2: backups and drills. Nightly automated backups, offsite, with a weekly verification job, then one restore drill against a written runbook. Do the drill before you feel ready.
  3. Week 3: continuous deployment. A pipeline that tests, builds, deploys on merge, and rolls back on a failed smoke test. Staging previews from pull requests if you can afford the hour.
  4. Week 4: the repetitive jobs. The content refresh cron, the dead man's switch on every scheduled job, and billing webhooks if you have revenue to automate.

Keep three principles across all four weeks. Every layer stays independent, so a broken pipeline never takes down backups. Every layer has a meta-monitor, something that watches the watcher. And every layer gets documented in a runbook as soon as it works, because the version of you at three in the morning during an incident is not the version of you who built the system. Start with one small site, not your whole portfolio, and let the habits compound before the tooling does.

The final piece of advice is patience with the boring parts. The glamorous version of an automated business is a screenshot of recurring revenue. The real version is a calendar reminder for a quarterly restore drill, a dead man's switch that has fired twice in a year, and a changelog of small failures you caught early. That unglamorous machinery is what a website that runs itself is actually made of, and it is entirely buildable by one person in a month.

Frequently Asked Questions About Running a Website That Runs Itself

How many hours per month does it really take?

Between two and four in a normal month for my site, which is content-plus-tools with 85 paying subscribers. The variance comes almost entirely from support volume and whether a strategic decision needs deep thinking. When something breaks badly, a month can spike to eight or ten hours, and that is normal too; automation reduces frequency and detection time of incidents, not their existence.

I am not a programmer. Is there a no-code version of this?

Yes, with softer edges. Managed hosting like Vercel or WordPress hosts give you push-to-deploy out of the box, uptime services and backup plugins require no code, and tools like Zapier or Make can automate billing notifications and content scheduling with webhooks. You will trade some reliability and some cost for the convenience, and the deepest automation, like idempotent webhook handlers, still eventually wants a developer. But the first three layers, monitoring, backups, and deploys, are fully achievable without writing code.

Does AI write all your content?

The pipeline drafts outlines and refreshes data tables, and a model helps generate first passes that I edit. In my case roughly a third of published words started as machine drafts, and every one of them passes through human fact-checking, because the alternative published a confidently wrong claim within a week of my experiment. AI in the content layer is a drafting accelerator, not a publisher, and the day I let it publish unreviewed is the day the site's trust, its actual asset, starts quietly eroding.

Which layer should I automate first if I only do one?

Monitoring, and it is not close. Backups come second. Both are free at small scale, both protect everything else you will ever build, and both work even if you never automate another thing. Deployment automation is the third priority and the one developers enjoy most, which is exactly why so many stacks get built in the wrong order: the fun layer first, the safety layers never.

Can this run on free tiers forever?

Mostly, yes, at small scale. Uptime monitoring, static hosting, CI minutes for public repositories, transactional email starter tiers, and Sentry's free tier cover a hobby site indefinitely. The paid lines in my table, Fly.io and Backblaze B2, cost about twelve dollars combined and are the point where free tiers got genuinely tight for a site with a database and real traffic. My rule has been to upgrade when revenue exists, not before, and so far revenue has always arrived first.

What happens if you disappear for two weeks?

This is the test the whole stack exists to pass. Billing, publishing, and backups continue unattended. Alerts reach my phone, and the auto-remediation layers, rollback and restart, hold the line on the common failures. Support emails accumulate politely in a queue, drafts pile up unpublished, and nothing catches fire. After two weeks I would return to maybe three hours of backlog, most of it judgment work. That, more than any revenue number, is what I mean when I say my website runs itself.

Back to all articles https://safe.encylife.com/blog/website-that-runs-itself-full-stack

Comments (0)

Log in to join the discussion.

No comments yet. Be the first to comment!