Jakub Sokołowski f96573369f
add db healtcheck to docker-compose.yml
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-07-04 21:25:22 +02:00
try
2023-06-01 11:45:20 +03:00
2023-06-20 15:13:08 +03:00
2023-06-21 17:40:19 +03:00
2023-06-16 12:49:59 +03:00
2023-05-09 20:09:18 +03:00
2023-04-20 16:10:16 +03:00
2023-04-20 16:10:16 +03:00
2023-05-10 16:45:18 +03:00
2023-06-21 15:22:54 +03:00
2023-04-20 15:33:42 +03:00
2023-04-20 16:10:16 +03:00
2023-04-20 16:10:16 +03:00
2023-07-04 20:56:22 +02:00
2023-06-09 16:36:09 +03:00
2023-05-09 17:55:29 +03:00
2023-05-09 17:16:13 +03:00
2023-05-09 17:16:13 +03:00
2023-04-20 16:10:16 +03:00

Open-Law

Installation

  1. Create virtual environment and install dependencies poetry install
  2. Install node packages yarn
  3. Run webpack JS bundler yarn js-watch
  4. Run webpack CSS bundler yarn css-watch
  5. Rename project.env to .env
  6. Up docker container with database docker-compose up -d db
  7. Apply migrations flask db upgrade
  8. Run project in the vs-code debugger F5

Build

  1. To minify static files run yarn js and yarn css or sh build_static.sh
  2. Build docker containers docker-compose build
  3. 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

Description
Python, Flask, TailwindCSS
Readme MIT
Languages
JavaScript 74.6%
HTML 11.2%
Python 10.9%
TypeScript 2.2%
CSS 1%