Something went wrong. Try again.
Your honorable gaming companion
Something went wrong. Try again.
README.md
Game Knight #
Game Knight is an Elixir application built with Ash and AshPostgres.
Development #
Prerequisites: Nix, Devenv, and Direnv.
Enter the project directory and approve the environment once:
direnv allow
Start the local PostgreSQL service:
devenv up -d
Devenv provides the local DATABASE_URL. Run Mix commands through SecretSpec so
the application always uses its declared development secret profile:
secretspec run --profile development -- mix ash.setup
secretspec run --profile development -- iex -S mix
Stop local services when finished:
devenv down
Production #
Production requires DATABASE_URL from the production SecretSpec profile.
That profile reads the SOPS-encrypted file at
secrets/game_knight/production.enc.yaml.
Run the production release with the production profile so the database URL is only exposed to that process:
secretspec run --profile production -- _build/prod/rel/game_knight/bin/game_knight start