【发布时间】:2021-01-24 16:11:12
【问题描述】:
我在部署 python 应用程序时遇到问题,该应用程序将附加信息写入 sql 数据库。 Postgres SQL 托管在谷歌云中,为了连接到它,我使用凭证文件并通过存储 json 的路径中的 cmd 调用它。命令 在powershell中
>>CD "path where stored"
>>cloud_sql_proxy -credential_file=./credentials.json -instances="[PROJECT-ID]:[REGION]:[INSTANCE-NAME]=tcp:5435"
问题,我将如何部署它谷歌应用引擎,以及如何使用 json 调用函数。不用在cmd中输入?
【问题讨论】:
标签: python postgresql google-app-engine google-cloud-platform psycopg2