This repository is for the development of kokura.ex's org website.
graph TD;
subgraph Docker
Elixir
Phoenix
end
subgraph R[Build and Deploy using Docker image]
Render
end
Docker-->|git push to GitHub|GH[GitHub];
GH-->|Detection of changes|CI[CircleCI];
CI-->|After CI passed,<br>allow merge to <strong>main</strong> branch|GH;
CI-->|When <strong>main</strong> branch merged, run Render deploy hook|R;
R-.->|Using <strong>main</strong> branch's latest files for deploy|GH;
- Elixir 1.19.5 (Erlang/OTP 28)
- Phoenix 1.8.3
- CircleCI
- Render
-
Prepare
SECRET_KEY_BASEandGITHUB_API_TOKEN(ref). -
Set them to .env file.
docker compose run app mix phx.gen.secret
cp app/.env.sample app/.env
-
Set the environment variable to Render.
SECRET_KEY_BASEPORTPHX_SERVERGITHUB_API_TOKEN
-
Normal development (can debug by live reloading)
docker compose build
docker compose up
-
Development verifying in a production environment
./script/docker_prod_verify.sh
The previous system architecture and archived repositories are as follows.
