Skip to content

anne030303/TownPass-Blood-Donation-Services

Repository files navigation

Development

部署流程

  1. branch dev推上Github
  2. 自動啟動對應的Cloud Build觸發條件
    • Cloud Build觸發條件中有設定部署用的環境變數:_NODE_ENV=development
    • Cloud Build會讀取cloudbuild.yaml檔案,紀錄有對應的Dockerfile路徑(docker/$_NODE_ENV/Dockerfile)
    • Dockerfile中會複製一份.env.development,可在js中取得設定的環境變數
  3. Cloud Build版本紀錄查看部署進度,並在Cloud run查看結果
  4. Development link

Cloud Storage

wee-landing-dev

Production

部署流程

  1. branch main推上Github
  2. 自動啟動對應的Cloud Build觸發條件
    • Cloud Build觸發條件中有設定部署用的環境變數:_NODE_ENV=production
    • Cloud Build會讀取cloudbuild.yaml檔案,紀錄有對應的Dockerfile路徑(docker/$_NODE_ENV/Dockerfile)
    • Dockerfile中會複製一份.env.production,可在js中取得設定的環境變數
  3. Cloud Build版本紀錄查看部署進度,並在Cloud run查看結果
  4. Production link

Cloud Storage

wee-landing-prod

  • 設定CORS

gcloud storage buckets update gs://wee-landing-prod --cors-file=cors_file.json

[
    {
      "origin": ["{Production link}"],
      "method": ["GET"],
      "responseHeader": ["Content-Type"],
      "maxAgeSeconds": 3600
    }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published