Replies: 4 comments 1 reply
-
|
If i open the terminal and do php artisan key:generate i also get ErrorException file_get_contents(/app/.env): Failed to open stream: No such file or directory |
Beta Was this translation helpful? Give feedback.
-
|
Any update on this? Same issue here |
Beta Was this translation helpful? Give feedback.
-
|
Solution I have my project Dockerized. I create a .sh file which I call from my php.Dockerfile. My .sh file contains the following: '#!/bin/sh echo "=> Generating .env file from the environment..." '# Replace all the environment variables injected by Dockerploy '# Check the size for the log (without displaying sensitive content) echo "=> Verifying folder structure..." echo "=> Environment ready. Starting process..." |
Beta Was this translation helpful? Give feedback.
-
|
If this is a deployment using compose, try adding this to your service: env_file:
- .envDokploy will create a Many containers have settings to ignore |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Any idea why laravel isn't picking up the environment variables?
I created a new App > Git:
Repository URL: https://github.com/laravel/laravel.git
Branch: 11.x
Path: /
Then input all the Laravel .env.example into the Environment variables
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://localhost
etc
etc
But it never picks them up.. we can see on the logs
...
[laravel:warn] Your app configuration references the DYNAMODB_ENDPOINT environment variable, but it is not set.
[laravel:warn] Your app configuration references the DB_URL environment variable, but it is not set.
[laravel:warn] Your app configuration references the DB_URL environment variable, but it is not set.
[laravel:warn] Your app configuration references the MYSQL_ATTR_SSL_CA environment variable, but it is not set.
[laravel:warn] Your app configuration references the DB_URL environment variable, but it is not set.
[laravel:warn] Your app configuration references the MYSQL_ATTR_SSL_CA environment variable, but it is not set.
[laravel:warn] Your app configuration references the DB_URL environment variable, but it is not set.
[laravel:warn] Your app configuration references the DB_URL environment variable, but it is not set.
[laravel:warn] Your app configuration references the REDIS_URL environment variable, but it is not set.
[laravel:warn] Your app configuration references the REDIS_USERNAME environment variable, but it is not set.
[laravel:warn] Your app configuration references the REDIS_URL environment variable, but it is not set.
[laravel:warn] Your app configuration references the REDIS_USERNAME environment variable, but it is not set.
[laravel:warn] Your app configuration references the AWS_ACCESS_KEY_ID environment variable, but it is not set.
[laravel:warn] Your app configuration references the AWS_SECRET_ACCESS_KEY environment variable, but it is not set.
[laravel:warn] Your app configuration references the AWS_BUCKET environment variable, but it is not set.
[laravel:warn] Your app configuration references the AWS_URL environment variable, but it is not set.
Beta Was this translation helpful? Give feedback.
All reactions