mirror of
https://github.com/logos-co/open-law.git
synced 2025-02-01 17:44:59 +00:00
Jakub Sokołowski
f96573369f
add db healtcheck to docker-compose.yml
Signed-off-by: Jakub Sokołowski <jakub@status.im>
Open-Law
Installation
- Create virtual environment and install dependencies
poetry install
- Install node packages
yarn
- Run webpack JS bundler
yarn js-watch
- Run webpack CSS bundler
yarn css-watch
- Rename
project.env
to.env
- Up docker container with database
docker-compose up -d db
- Apply migrations
flask db upgrade
- Run project in the vs-code debugger
F5
Build
- To minify static files run
yarn js
andyarn css
orsh build_static.sh
- Build docker containers
docker-compose build
- Run docker containers
docker-compose up -d
To set up auto deployment CI/CD you need to set following variables in the Actions secrets and variables page of repository settings
DOCKERHUB_TOKEN
- hub.docker.com api token
DOCKERHUB_USERNAME
- hub.docker.com username
SSH_HOST_IP_PROD
- VPS IP
SSH_KEY
- VPS ssh key
SSH_USER
- VPS user
Languages
JavaScript
74.6%
HTML
11.2%
Python
10.9%
TypeScript
2.2%
CSS
1%