https://github.com/softchef/hkbn-lighting-control
https://github.com/softchef/hkbn-lighting-control
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/softchef/hkbn-lighting-control
- Owner: SoftChef
- Created: 2020-10-05T11:53:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T07:16:00.000Z (about 5 years ago)
- Last Synced: 2025-10-29T14:47:23.444Z (8 months ago)
- Language: Vue
- Size: 768 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hkbn-lighting-control
### API 文件:
https://docs.google.com/spreadsheets/d/1ItHlAVr-m7YOrVH88D7zfbiSf8RRvZtNjOEKFn68FBk/edit?usp=sharing
### 兩種環境:
1. uat 測試環境
2. prod 正式環境
### 目前配置相關:
1. 前後端各環境 config 檔案需手動同步 (將 prod.config.js 或 prod.config.js 內容複製到 config.js)
2. gateway & group 資料為寫死狀態
3. 通知寄信功能為正式環境才需要,故 SES 相關設定直接在 AWS console 操作
4. 根據目前環境判斷是否建立寄信用的 lambda 與前端是否需要在更改排程後呼叫寄信 lambda
### 注意事項:
1. bls 指令佈版會 cache 住 src 底下的檔案變更,切換環境佈版時因為只改 config 檔(不在 src 底下) 故會無法正確打包佈版。
2. 把根目錄底下 checksum 刪除後,bls 指令佈版才會認為檔案有更新所以重新打包。
3. 佈不同環境記得 bls 指令切換 project
### 部署:
**UAT 佈在 MIAP UAT account:**
```
bls ad -n poc-karin-uat -o BucketName=poc-karin-uat-ap-southeast-1
```
**PROD 佈在 BLS POC account:**
```
bls ad -n karin-poc-production -o BucketName=karin-poc-prod-ap-southeast-1
```