Skip to content
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

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

Open
gingerchew opened this issue Jan 10, 2020 · 0 comments
Open

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

gingerchew opened this issue Jan 10, 2020 · 0 comments

Comments

@gingerchew
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant