Comments (3)
As it turns out this is indeed a case of user error. I was not aware that the dotenv
library does indeed require a .env
file; I thought it also read the server environment variables, meaning one could forego inclusion of a .env
file in production. However in hosting environments where symlinking games commonly used with Capistrano is not possible, I'd rather not deal with the .env
file at all. The easy fix is to comment out Dotenv::load
in bootstrap/app.php
(I had previously uncommented it), and then just use getenv()
to retrieve the server environment variable.
from lumen-framework.
this still not work, i have tried with env(), getenv etc. nothing work to get the ENV settings
from lumen-framework.
composer require vlucas/phpdotenv
https://github.com/vlucas/phpdotenv
from lumen-framework.
Related Issues (20)
- Database configuration is not perfect HOT 1
- .env not loaded properly HOT 1
- SerializableClosure InvalidSignatureException being thrown when calling a batched job that uses Encrypter HOT 3
- Illuminate\Support\Str::mask position bug HOT 2
- Multiple methods (GET and POST) for same route not working HOT 3
- Failing database migrations HOT 3
- excludeIf validation rule does not work as expected when using $this->validate from controller HOT 1
- Call to undefined method Laravel\\Lumen\\Application::getFallbackLocale() HOT 2
- Error: Call to undefined method terminating() HOT 2
- View method regression in version 9.1.4
- Want to add some features in middleware
- Errors appears on logs even on fresh install HOT 2
- Errors appears on logs even on fresh install HOT 1
- php artisan migrate does not work when a parent directory has brackets in its name. HOT 1
- The command php artisan schedule:work was failed HOT 1
- Laravel Lumen Error Call to undefined method Laravel\Lumen\Routing\Router::middleware() HOT 5
- Console erro report HOT 1
- "prune-failed" not available HOT 2
- CommandFinished not working
- php artisan queue:failed-table is failing. (Affects every Illuminate\Console\MigrationGeneratorCommand). HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lumen-framework.