I'm trying to start my Strapi app into Google App Engine, I did deployed successfully, but I keep getting this error on the logs:
Server wasn't able to start properly Error: getaddrinfo EAI_AGAIN /cloudsql/connectionName
Error Log:
I followed the instructions of deployment, but maybe something is missing, is like my app can't establish the connection with my Cloud SQL for MySQL database.
This is my .yaml file:
runtime: nodejs12
instance_class: F2
env_variables:
HOST: '0.0.0.0'
NODE_ENV: 'production'
DATABASE_NAME: 'test'
DATABASE_USERNAME: '***'
DATABASE_PASSWORD: '***'
INSTANCE_CONNECTION_NAME: '***'
beta_settings:
cloud_sql_instances: '***'
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'mysql',
host: `/cloudsql/${env('INSTANCE_CONNECTION_NAME')}`,
database: env('DATABASE_NAME'),
username: env('DATABASE_USERNAME'),
password: env('DATABASE_PASSWORD'),
},
},
},
});
If someone knows about this and can help me I will appreciate it.
host
tosocketPath
. – Chlortetracycline