From e2387a3846699a0a395294f647499fa91ab3b137 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 5 Sep 2024 15:18:09 +0700 Subject: [PATCH] edit readme & change IMAGE_NAME --- .github/workflows/release.yaml | 3 ++- README.md | 25 +++++++++++++++++++------ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5116050..4142249 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,8 @@ on: workflow_dispatch: env: REGISTRY: docker.frappet.com - IMAGE_NAME: ehr/bma-ehr-node-service + # IMAGE_NAME: ehr/bma-ehr-node-service + IMAGE_NAME: ehr/bma-ehr-probation DEPLOY_HOST: frappet.com # COMPOSE_PATH: /home/frappet/docker/bma-ehr COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-probation diff --git a/README.md b/README.md index 2d78d17..9c611de 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,29 @@ Envelopment - Express - Mysql -Run Project +Install packages ``` -> npm install -> npm run dev +npm install +``` + +Run project + +``` +npm run dev ``` Migration -1. สร้าง entities +1. สร้าง/แก้ไข entities 2. สร้างไฟล์ migration จาก entities และรัน update เข้า database - > npm run migration:generate src/migration/xxx (xxx คือชื่อไฟล์ migrate) - > npm run migration:run + +``` +npm run migration:generate src/migration/xxx (xxx คือชื่อไฟล์ migrate) +``` + +3. Run migration + +``` +npm run migration:run +```