edit readme & change IMAGE_NAME
This commit is contained in:
parent
0703810fa3
commit
e2387a3846
2 changed files with 21 additions and 7 deletions
3
.github/workflows/release.yaml
vendored
3
.github/workflows/release.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
25
README.md
25
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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue