> For the complete documentation index, see [llms.txt](https://stb11816.gitbook.io/python_note/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stb11816.gitbook.io/python_note/gcp/app-engine.md).

# app engine

## Update

先安裝gcp sdk

開啟sdk的cmd並切換至專案資料夾

```
# 新增資料夾，用來存放app所需要的套件
mkdir lib

# 根據txt內容開始下載套件至lib中
pip install --target lib --requirement requirements.txt --ignore-installed

# 把lib資料夾與其他檔案一起上傳至gcp，可不加project id
gcloud app deploy --project {project-id}
```

## 查看log

版本 -> 診斷 ->工具 -> 紀錄

```
This is a Google APP Engine Standard Environment program (Python 2.7). To deploy it, follow these steps.
    mkdir lib
    pip install --target lib --requirement requirements.txt --ignore-installed
    gcloud app deploy --project {project-id}
```
