-
Notifications
You must be signed in to change notification settings - Fork 103
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
Composer install --no-dev failing with sf4 + flex #35
Comments
this one hast it cleaner: |
It is not bundle problem. You can move symfony/dotenv from dev deps in composer.json, or just set env vars properly. |
yep but you still have pass app_env manually to the "composer install"-call, otherwise the call will fail with |
You can set it (and other vars like APP_DEBUG) in set -a
. /path/to/project/.env
set +a https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file |
Yep true, thanks for the hint. I'm switching between prod and debug on
staging server though, so adding this directly to import command, using
value from symfony env, still makes sense for me, (and keeps config in one
place centralized, and makes composer use the env chosen in deploy-config,
regardless from server config) but I agree, this is no bug/issue of the
module then.
Am 06.12.2017 00:59 schrieb "zorn-v" <notifications@github.com>:
You can set it (and other vars like APP_DEBUG) in ~/.profile or ~/.bashrc
for user which doing deploy for example export APP_ENV=prod
Or just
set -a. /path/to/project/.envset +a
https://unix.stackexchange.com/questions/79064/how-to-
export-variables-from-a-file
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE3dLrUQ-s5bCYb4XpbDrFgCFnPs435eks5s9djHgaJpZM4QzK8D>
.
|
AbstractDeployer actually sets variable SYMFONY_ENV to provided ->symfonyEnvironment(), which is later used in commands: |
I also have problems with Symfony 4 and .env file
|
@cve Have you found the solution to this problem? I have the same problem with Symfony 4. |
@MSDATDE not yet |
Does anyone has an example how to using this bundle with Symfony 4? |
Hi, i had the same error:
The main problem is: https://symfony.com/doc/current/configuration/dot-env-changes.html
FIX: #86
|
I ran into the same issue. Since #86 has not been merged yet I solved it by adding a command to the
|
@PtrTn I have made the same but still having an error afer composer install:
If I interrupt the deployment just at this step and run the same command manually, it works.
|
I fixed this here,
45da26d
messed up the fork though, so can't create clean pullrequest (or at least I dunno know how)
To make it nice you would replace the 'prod' with the symfony-env
The text was updated successfully, but these errors were encountered: