9-1 上傳程式碼就能跑 – Google App Engine 和 Cloud Run Function

Google App Engine 相關程式碼

注意事項:

請整包解壓縮到一個單獨的資料夾,你就可以在 Cloud Shell 或是有安裝 Google Cloud CLI 的地方執行 gcloud app deploy 來部署 Google App Engine。

不過有幾個建議:

  1. 檔案大小考量 – node_modules 通常很大,傳輸時間會比較長
  2. 你可以只下載原始碼(不要下載 node_modules),在你自己的環境執行 npm install

Table of Contents
返回頂端