Skip to content

Option to generate your .env file during ./init.sh #1

@gingerchew

Description

@gingerchew

Feature request

Summary

After running the ./init.sh script for the first time, I noticed that there was a check for a .env file, but no instructions on the documentation about it. I think adding a prompt to generate one in the terminal, similar to npm init and other commands.

Why is it needed?

Makes it a clearer what is going on. Maintains user control.

Suggested solution(s)

I have a solution, added to the original if;else 🔗 here
You can see I had prompts for the URL and alias fields. This seemed redundant since the example file suggested they would all be derived from the project name.

Related issue(s)/PR(s)

I haven't made a PR yet, but if you review the above code I can certainly pull one together. Unnecessary comments and what not.

Example of skipping through but selecting a MODx version

Screen Shot 2020-01-09 at 10 09 54 PM

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