I am trying to deploy my app to staging and when I get to migrations I keep getting the same error:
✔ Mix: Compiled successfully in 2.02s
webpack compiled successfully
==> Running Command: php artisan migrate:fresh
In Process.php line 267:
The command "php artisan migrate:fresh" failed.
Exit Code: 1(General error)
Working directory: /home/me/code/project/.vapor/build/app
Output:
================
Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQ
L: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:742
738▕ // If an exception occurs when attempting to run a query, we'll format the error
739▕ // message to include the bindings with SQL, which will make this exception a
740▕ // lot more helpful to the developer instead of just the database's errors.
741▕ catch (Exception $e) {
➜ 742▕ throw new QueryException(
743▕ $query, $this->prepareBindings($bindings), $e
744▕ );
745▕ }
746▕ }
+44 vendor frames
45 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Error Output:
================
I am able to connect to the databse and the table has been created (it's empty). My .env file does not have any db info as the docs says it injects it for you. Any help would be appreciated.