Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello everyone, I try to deploy a Laravel project in Digitalocean App platform but I have problems with database connections. My env variables are:
DB_HOST = ${db-cluster-name.DATABASE_URL}
DB_CONNECTION = mysql
DB_PORT = ${db-cluster-name.PORT}
DB_DATABASE = db_name
DB_USERNAME= db_username
DB_PASSWORD= db_password
When I try in DO console commands like:
php artisan migrate
I have the following errors:
In Connection.php line 671:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: select * from information_schema.tables where t
able_schema = circle_in_family and table_name = migrations and table_type = 'BASE TABLE')
In Connector.php line 70:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
In Connector.php line 70:
PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Any ideas?
a6309a057c3f4cb38fb2e7feb67236
KFSys
ef1ed44cc2154be3bcbb2d727878f8
Devs Neonetworks
1e6b823ea20d4cb189a34a922f5588
Telmo Valverde
erik-jan martens
Henry Mui
anthonycarreon
garantieheld
Marin