https://github.com/miolab/kokuraex
This repository is for the development of kokura.ex organization's website.
https://github.com/miolab/kokuraex
cicd docker elixir phoenix-framework
Last synced: about 2 months ago
JSON representation
This repository is for the development of kokura.ex organization's website.
- Host: GitHub
- URL: https://github.com/miolab/kokuraex
- Owner: miolab
- Created: 2021-04-22T04:26:07.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T23:46:07.000Z (about 2 years ago)
- Last Synced: 2024-04-13T10:06:03.822Z (about 2 years ago)
- Topics: cicd, docker, elixir, phoenix-framework
- Language: Elixir
- Homepage: https://kokuraex.onrender.com
- Size: 1.36 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kokura.ex
[](https://github.com/miolab/kokuraex)
# About
This repository is for the development of **kokura.ex**'s org website.
```mermaid
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,
allow merge to main branch|GH;
CI-->|When main branch merged, run Render deploy hook|R;
R-.->|Using main branch's latest files for deploy|GH;
```
## Versions
- Elixir 1.19.5 (Erlang/OTP 28)
- Phoenix 1.8.3
## CI/CD tool
- CircleCI
## PaaS
- Render
---
## For Dev
- Prepare `SECRET_KEY_BASE` and `GITHUB_API_TOKEN` ([ref](https://github.com/settings/tokens)).
- Set them to .env file.
```sh
docker compose run app mix phx.gen.secret
```
```sh
cp app/.env.sample app/.env
```
- Set the environment variable to Render.
- `SECRET_KEY_BASE`
- `PORT`
- `PHX_SERVER`
- `GITHUB_API_TOKEN`
### Run application in local development
- Normal development (can debug by live reloading)
```sh
docker compose build
```
```sh
docker compose up
```
- Development verifying in a production environment
```sh
./script/docker_prod_verify.sh
```
---
# Other Information
The **previous system architecture** and **archived repositories** are as follows.
https://github.com/miolab/kokuraex_phx_1_6/tree/main
