ローカルで作ったLaravelをDocker上の本番環境へ持ってきました。
sqliteで作成しデータベースを持ってきました。
php artisan cache:clear
php artisan:config:clearなど試しましたがドライバーを認識しているのに見つからないと言われ困っております。
何か見落としていますでしょうか?
宜しくお願いします。
# php artisan migrate:status Illuminate\Database\QueryException : could not find driver (SQL: PRAGMA foreign_keys = ON;)
# php artisan tinker Psy Shell v0.9.12 (PHP 7.2.24-0ubuntu0.18.04.6 ― cli) by Justin Hileman >>> config('database') => [ "default" => "sqlite", "connections" => [ "sqlite" => [ "driver" => "sqlite", "url" => null, "database" => "/home/vagrant/Lara/laravel/database/database.sqlite", "prefix" => "", "foreign_key_constraints" => true, ], "mysql" => [ "driver" => "mysql", "url" => null, "host" => "127.0.0.1", "port" => "3306", "database" => "forge", "username" => "forge", "password" => "", "unix_socket" => "", "charset" => "utf8mb4", "collation" => "utf8mb4_unicode_ci", "prefix" => "", "prefix_indexes" => true, "strict" => true, "engine" => null, "options" => [], ], "pgsql" => [ "driver" => "pgsql", "url" => null, "host" => "127.0.0.1", "port" => "5432", "database" => "forge", "username" => "forge", "password" => "", "charset" => "utf8", "prefix" => "", "prefix_indexes" => true, "schema" => "public", "sslmode" => "prefer", ], "sqlsrv" => [ "driver" => "sqlsrv", "url" => null, "host" => "localhost", "port" => "1433", "database" => "forge", "username" => "forge", "password" => "", "charset" => "utf8", "prefix" => "", "prefix_indexes" => true, ], ], "migrations" => "migrations", "redis" => [ "client" => "predis", "options" => [ "cluster" => "predis", "prefix" => "laravel_database_", ], "default" => [ "url" => null, "host" => "127.0.0.1", "password" => null, "port" => "6379", "database" => 0, ], "cache" => [ "url" => null, "host" => "127.0.0.1", "password" => null, "port" => "6379", "database" => 1, ], ], ]
Laravel Framework 5.8.36
Laravel5.8
Docekr-compose
Ubuntsu18.04
sqlite
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/08/20 07:17
2020/08/20 08:32
2020/08/20 13:59