Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

Can you confirm that your staging server is running in the staging environment? I sounds like you already have, but just in case, calling dd(App::envinronment()); from a route should let you know.

Last updated 2 years ago.
0

Yup: response is string(7) "staging"

And I know that it's not even attempting to load my .env.staging.php file because I tried adding some gibberish to it and it won't even throw an error acknowledging that..

Last updated 2 years ago.
0

Well, I bet you already know, but all of the dot file loading seems to be in the Config section. What's the error you're seeing?

Last updated 2 years ago.
0

This: Laravel Error

As you can see, it's simply not acknowledging the .env.staging.php file in which all those $_ENV variables are set..

All I want to know is: Which part of the code (laravel or apache, not sure) identifies a .env.name.php file and loads it up.. it's quite an annoying problem as I don't even know how to debug it..

Last updated 2 years ago.
0

Like I linked to above, all of the dot file loading happens in the config folder. You can browse through those files to figure out where there is a problem.

Last updated 2 years ago.
0

Thanks man for trying to help, but I've checked everything in the config folder, not a single line loads the .env.name.file , I think it's a php.ini or Apache thing, but I can't find any reference for it..

Last updated 2 years ago.
0

jlaswell said:

Like I linked to above, all of the dot file loading happens in the config folder. You can browse through those files to figure out where there is a problem.

If You meant the config folder in the \Illuminate\Config\ , then you were right. I just dug up this up: http://laravel.com/api/4.2/Illuminate/Config/EnvironmentVariables.html ... now to see how I can debug it.. Again thx..

Last updated 2 years ago.
0

Have you tried changing $_ENV to getenv()?

Last updated 2 years ago.
0

Sounds good. If you run into another block, feel free to post again and I'll try to help!

Last updated 2 years 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.