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 this problems when I was running my application using docker containers.
The solution was put the name of the MySQL service container I was using in docker_compose.yml on DB_HOST. In my case, it was db :
docker_compose.yml
db
DB_HOST=db
Hope it helps.