fp/README.md
CJ_Clippy b7a64d1fd3
Some checks failed
ci / build (push) Failing after 1m22s
ci / Tests & Checks (push) Failing after 1s
progress
2025-08-10 18:17:27 -08:00

1.3 KiB

futureporn.net

Tests Status Build Status Postgres

Source Code for https://futureporn.net

See ./ARCHITECTURE.md for an overview of the infrastructure components.

Dev notes

backup/restore dev database

@see https://stackoverflow.com/a/29913462/1004931

backup

Use devbox helper script

devbox run backup

restore

cat ./backups/your-backup.sql | docker exec -i postgres_db psql -U postgres

testing

there is some undesirable behavior when running tests because nektos/act mimicks github actions. we are banned from github so we aren't using that. instead, we use gitea act_runner. github actions Job runner runs on docker 'host' network. gitea act_runner runs on a custom named bridge network. e.g. GITEA-ACTIONS-TASK-974_WORKFLOW-ci_JOB-Tests-Checks-test_phoenix-network confusing, right? It totally is! when we are working with gitea act_runner, we can use dns names, e.g. test-db. when we are working with nektos/act, we must use the IP address of the service container. WTF there must be a better way