Commit graph asxpio/flake.nix
Author SHA1 Message Date
c56469f323
Revert "Ruby 4.0.9, in the image and the flake"
All checks were successful
Tests / test (push) Successful in 23s
Build and Deploy to Production / test (push) Successful in 22s
Build and Deploy to Production / build (push) Successful in 1m0s
Build and Deploy to Production / deploy (push) Successful in 40s
The deploy (run 458) crash-looped: under Ruby 4 the default bigdecimal
is 4.0.1, and ttfunk 1.8.0 (prawn, invoice PDFs) requires bigdecimal
~> 3.1, so the app fails to load (Gem::ConflictError). The pre-merge
boot test stopped at the database connection, before prawn was
loaded, so it missed this. Production was rolled back by hand to
768b10e1; this puts main back in step.

Assisted-by: Claude:opus-5-5
2026-11-13 03:40:58 +04:00
7b344540fe
Ruby 4.0.9, in the image and the flake
Some checks failed
Tests / test (push) Successful in 46s
Build and Deploy to Production / test (push) Successful in 21s
Build and Deploy to Production / build (push) Successful in 1m0s
Build and Deploy to Production / deploy (push) Failing after 2m3s
Move the production image to ruby:4.0.9-slim-bookworm (same distro, so
native gems build against the same libraries) and the dev shell to
nixpkgs' ruby_4_0, also 4.0.9, so the tests run on the Ruby that ships.

Ruby 4's Bundler 4 dropped `bundle install --without`; set
BUNDLE_WITHOUT instead, which Bundler 2 reads too. The lockfile stays
BUNDLED WITH 2.7.2 (nixpkgs' bundler; Bundler 4 switches to it).

Checked before merging: the image builds, keeps the test gems out, and
boots Puma 8.0.2 on Ruby 4.0.9 through to opening the database.

Rollback: revert this commit and redeploy (or re-tag the previous image).

Assisted-by: Claude:opus-5-5
2026-11-13 03:34:46 +04:00
2ea46b12e6
gems: add pg, sequel, prawn, aws-sdk-s3 for invoicing
- pg + sequel: connect to the storage stack's Postgres.
- prawn + prawn-table: render invoice PDFs.
- aws-sdk-s3: upload PDFs to MinIO and mint presigned download URLs.

Also pulls libpq-dev into the Docker build (for the pg gem) and the
postgresql client lib into the Nix dev shell.
2026-05-26 17:29:21 +03:00
1ab09043ee
ruby rework with contact form
All checks were successful
Build and Deploy to Production / build (push) Successful in 51s
Build and Deploy to Production / deploy (push) Successful in 34s
2026-05-05 00:45:27 +04:00