Dusk database migrations with .env.dusk.local and Homestead
I'd really want to make use of Dusk, but after spending hours I'm still without any luck setting it up to make it work with database.
I've added .env.dusk.local and tried sqlite with :memory: and with the actual database file.
I also tried mysql with homestead, which is what I use for my local environment using database created specifically for tests with host 127.0.0.1 and port 33060 and standard homestead credentials, but again - without any luck - I constantly get:
Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = cms and table_name = migrations)
The only time that it does work is when I use these settings in the main .env file.
Weirdly, when I check the .env file when dusk is running - it does update all variables to the ones from the .env.dusk.local and makes the backup of the original one so I wonder if the problem is perhaps with the delay between the local directory and the homestead?
Could someone point me in the right direction?
Please or to participate in this conversation.