Skip to content

Improve workflow when not using Env vars #287

Closed
@apfelbox

Description

@apfelbox

Hi 👋

we are currently migrating to Flex and have encountered a small DX issue. I currently don't have a nice proposal, but just wanted to point out that there might be an area to improve.

If you are not using env variables, the EnvConfiguration command currently just bails out:

private function configureEnvDist(Recipe $recipe, $vars)
{
$distenv = getcwd().'/.env.dist';
if (!is_file($distenv) || $this->isFileMarked($recipe, $distenv)) {

In this case though, the information about which configuration parameters (in form of env variables or env(VAR): value in your parameters.yaml) the bundle expects is just lost:

2018-01-11 at 17 44

I am not sure about how to improve the situation except printing a message like:

Hey, this bundle needs some env variables. This is what we would have added to your .env.dist file, but since you don't have one, you have to add these parameters yourself: [... print manifest.json["env"] ...]

So currently you have to hunt down the recipe manually in Github (potentially search the correct version), look at the manifest.json and proceed from there. This might be improved by just printing the already available info to the CLI in the installation process?

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions