1.2.1 • Published 4 years ago
gtx-worker-v2 v1.2.1
gtx-worker-v2
Generate file: Khi chạy cronjob sẽ tạo ra 3 directories: + .output: Chứa file .bat để chạy + Input: Chứa image download file để chuẩn bị generate sang file ARX4 + FILE_ARX4: Chứa file đã được generate
Config: - File .env + FACTORY_SERVICE: URI của api factory + OUTPUT_ARX4_DIR= Path thư mục FILE_ARX4 chứa những file đã được generate + OUTPUT_IMG_DIR= Path thư mục Input chứa những file png đã được download + OUTPUT_BAT_FILE_DIR= Path thư mục .output chứa những file .bat + LIMIT_DATE= Ngày giới hạn để xóa file
- Example:
FACTORY_SERVICE=https://f1.merch8.com/api/order
OUTPUT_ARX4_DIR=/home/tungtt/factory/gtx-worker-v2/FILE_ARX4
OUTPUT_IMG_DIR=/home/tungtt/factory/gtx-worker-v2/Input
OUTPUT_BAT_FILE_DIR=/home/tungtt/factory/gtx-worker-v2/.output
LIMIT_DATE=7
- Config type:
+ Path: ./config/type.json
+ Có 2 type: T-Shirt và Youth T-Shirt
+ Những product type thuộc trong mảng TShirt sẽ được generate theo TShirt
+ Những product type thuộc trong mảng YouthTShirt sẽ được generate theo YouthTShirt
+ Exp: {
"types": {
"TShirt": ["T-SHIRT", "HAWAIIT-SHIRT"],
"YouthTShirt": ["YOUTHT-SHIRT", "HAWAIIYOUTHTT-SHIRT"]
}
}