Selected work, 2025–2026

axi0

The studio broadsheet, built and run by six people

← All workCase study 01 of 04

01 Our product

BigSkyEats

A food-delivery platform that we build and run ourselves. One Rails 8 application serves the API for the Expo mobile app and the admin console, PostgreSQL with PostGIS keeps the places and zones, and all of it runs on one ARM server behind a CDN.

Role
Owner. Code, server and deploys.
Built with
Ruby 3.3, Rails 8, ActiveAdmin, Expo, PostgreSQL 16 + PostGIS 3.5, Redis 7, Sidekiq
Runs on
One ARM server (2 vCPU), with a web server and a CDN in front
Status
Demo configuration, test payments only
Address
bigskyeats.app
bigskyeats.app on 19 October 2026, 10:12 EDT. The address opens the API server’s own status page; the mobile app people use talks to the API behind it. Desktop 1440 × 900, phone 390 × 844.

Problem

It ran on a laptop

Until 17 October 2026, BigSkyEats ran on one of our Macs. The server the old deploy script was written for no longer existed, and the domain pointed at the registrar’s parking page. Moving it meant rebuilding the whole stack somewhere it could stay up on its own.

Constraints

A small server, and jobs with side effects

The new home is one ARM server with two virtual CPUs, shared with other sites. The app’s lockfile and its native gems had only ever been built for Macs and for x86 Linux.

aarch64 is the name Linux gives 64-bit ARM. Bundler wants it listed in the lockfile.

The platform also runs in its demo configuration, with test payment keys. Every Rails boot writes about 60 scheduled jobs into Redis (payouts, hotel invoices, menu syncs, bots), and they only run inside a Sidekiq process. Starting that process is a deliberate step of its own and never part of a deploy.

What we built

The stack, rebuilt on ARM

Ruby 3.3, PostgreSQL 16 and PostGIS 3.5 all come from the operating system’s own packages. We restored the database from the newest dump with the extension lines taken out of the restore list and the extensions created first, so it went in with zero errors.

Puma runs as its own system user and listens on the loopback interface only. Its config file binds every interface in production, so the service passes the bind on the command line, and we check the open sockets to confirm it took. The web server serves the compiled assets from disk with a one-year immutable cache, hands the API to Puma and upgrades /cable to a WebSocket for Action Cable.

The config file says what should be listening. The list of open sockets says what is.

Every night an encrypted backup writes the database dump, the configuration and the uploaded files to a repository that keeps 14 daily and 4 weekly snapshots. We restored the first snapshot and checked it, every uploaded file included, before we trusted it.

A deploy, step by step

  1. Production fetches main from the repository with a read-only key.
  2. Bundler installs against a lockfile that lists aarch64-linux.
  3. The compiled extensions of sassc and RGeo are copied to where those gems look for them (see below).
  4. Migrations run.
  5. Assets are compiled again only if they changed.
  6. Puma restarts.
  7. /health and /api/v1/restaurants have to answer before the deploy reports success.

How it works

What runs where

Eleven parts, from the phone in someone’s hand to the backup at night. Select one to see what it does and which parts it talks to.

  1. Expo app

    mobile, React Native

    The app people use. It calls the Rails API over HTTPS and keeps a WebSocket open to Action Cable for live updates. React Native’s WebSocket sends the URL’s own origin, which is what Rails checks before it accepts the connection.

  2. Admin console

    ActiveAdmin, in a browser

    ActiveAdmin is part of the same Rails application, so it shares the API’s models and database. There is no second backend to keep in step.

  3. CDN

    DNS, proxy, TLS

    Every request arrives through the CDN’s proxy. The hop from the CDN to the server is encrypted as well, with a TLS certificate that the CDN verifies.

  4. Web server

    assets, proxy, redirects

    Serves the compiled assets straight from disk with a one-year immutable cache, passes API and admin requests to Puma, upgrades /cable to a WebSocket, and redirects www and plain http to https://bigskyeats.app.

  5. Action Cable

    WebSockets

    Live updates over WebSockets, served by the same Rails processes. Rails only accepts the upgrade from allowed origins, which is why a request with no Origin header gets a 404 instead of a socket.

  6. Rails on Puma

    API + admin

    Two Puma workers, listening on the loopback interface only. Rails serves the JSON API, the admin console and the health checks that every deploy calls.

  7. Redis 7

    sessions, cache, queue

    Sessions, cache and Sidekiq’s queue. Every Rails boot also writes about 60 sidekiq-cron schedules into Redis; they stay inert until a Sidekiq process runs.

  8. PostgreSQL 16

    with PostGIS 3.5

    The main database, with the PostGIS extension for geographic data. On the Ruby side the RGeo gem reads those shapes, and it needs the GEOS library at runtime (it is one of the three things ARM changed, below).

  9. Sidekiq

    scheduled jobs

    Runs the scheduled jobs: payouts, hotel invoices, menu syncs, Stripe Connect refreshes and the bots. Some of them move money and some call paid third-party APIs, so starting Sidekiq is a separate decision and never part of a deploy.

  10. Nightly backup

    encrypted snapshots

    Every night the database dump, the configuration and the uploaded files go into an encrypted backup repository; 14 daily and 4 weekly snapshots are kept. The first one was restored and checked before anything relied on it.

  11. Deploy

    one command

    Fetches main from the repository with a read-only key, installs gems, puts the native extensions where they are expected, migrates the database, compiles assets when they changed, restarts Puma, then calls /health and /api/v1/restaurants before it reports success.

What broke

Three things ARM changed

  1. The lockfile listed only arm64-darwin and x86_64-linux, so Bundler refused to install on the server until aarch64-linux was added. The change went back to the repository as a pull request.
  2. sassc compiles libsass from source. On two virtual CPUs, bundle install takes more than ten minutes.
  3. sassc and RGeo load their compiled extensions from the gem’s own folder, and RubyGems 3.5 no longer puts them there. Rails died loading libsass, and RGeo::Geos.supported? answered false while an explicit require worked. The deploy now copies each gem’s .so files into place after every install.

What changed

One command, checked

A deploy is one command now, and it doesn’t call itself finished until the health check and a real API endpoint answer. The data has a nightly backup that has been restored at least once. And the scheduled jobs stay a decision rather than a side effect of starting the app.

What next

This is a record of one project, not a quote

We own this one, which is the only reason a page can describe its insides in this much detail. If what you need is a platform somebody builds and then keeps running — the app, the API, the database and the server under all three — that is the shape of work this page is evidence for.

What we can tell you before we talkThe other three case studiesSee the price list

We take two engagements at a time, so the page above says what happens when both are taken.