-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Installing demo with --no-dev doesn't work #771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's an error ... but it's "normal". It's related to Symfony itself and not this application. The DotEnv component is installed only when not using That's why you usually don't add |
Let's suppose that this was my production machine, so adding --no-dev was the right way to do it for me. Meanwhile, the problem is still there, "DotEnv" being required in index.php. Loooking at [https://github.com/symfony/demo/blob/master/README.md], I can't see any reference for required ENV variables for production. This might be an issue for beginners, as I don't have a problem doing what's needed, but perhaps we can improve the documentation? |
I think it would be reasonable to add an explanation to the DotEnv use in index.php. Something like: "Environment variables are not set and DotEnv not installed. See that section in the readme." |
Ok, thanks for looking into it 👍 |
If I use:
composer create-project symfony/symfony-demo --no-dev
I'm getting:
[Wed Mar 14 17:12:58 2018] PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Dotenv\Dotenv' not found in D:\test\symfony-demo\public\index.php:21
Is this something normal ?
The text was updated successfully, but these errors were encountered: