I believe that I\'ve successfully deployed my (very basic) site to fortrabbit, but as soon as I connect to SSH to run some commands (such as php artisan migrate
php artisan migrate
I had the same problem using Docker and MySQL service name db in docker_compose.yml file:
db
I added the following in the .env file:
.env
DB_HOST=db
you should also assure that your host is discoverable from the php app.
It was because PHP didn't figure out which host to use to connect.