ENOENT when connecting to Google Cloud SQL from App Engine

后端 未结 3 943
既然无缘
既然无缘 2021-02-20 08:25

I\'m trying to deploy my Node.js app on Google App Engine and it deployed fine, but it can\'t connect to Google Cloud SQL for some reason. Here\'s what it throws:



        
3条回答
  •  甜味超标
    2021-02-20 09:14

    Apparently the order you do things matters...

    1. enable Cloud SQL API
    2. then (re)deploy your app (gcloud app deploy)

    When I did deploy -> create databases -> enable sql ipi I got the ENOENT error

提交回复
热议问题