Support the ongoing development of Laravel.io →
Configuration Testing
Last updated 1 year ago.
0

Hey,

solved it myself. Somehow on travis --env=travis on artisan serve has no affect.
Adding 'testing' => ['testing-worker-linux*'] to bootstrap/start.php results in correct environment detection and all configs are loaded from the correct environment.

Tests are now passing.

Thanks anyway.

Last updated 1 year ago.
0

@MetalMatze

Do you mind explaining this solution more? I am currently looking to do the same thing. Also looking to use a test database with my CI.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.