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

copy .env.template to .env if it exists #458

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

ksvirkou-hubspot
Copy link
Contributor

@ksvirkou-hubspot ksvirkou-hubspot commented Mar 26, 2021

copy .env.template to .env if it exists after downloading a sample app

@ksvirkou-hubspot ksvirkou-hubspot changed the title copy .env.temlate to .env if it exists copy .env.template to .env if it exists Mar 26, 2021
@anthmatic anthmatic self-requested a review March 26, 2021 14:43
@@ -260,6 +260,9 @@ exports.handler = async options => {
}
);
if (created) {
if (fs.existsSync(`${filePath}/.env.template`)) {
fs.copySync(`${filePath}/.env.template`, `${filePath}/.env`);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing that I am not sure I understand is why the boilerplates should not be adjusted to have .env.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @gcorne, adjusting .env to the boilerplates is a good idea, but we have some concerns about excluding it from .gitignore since:

  • it needs to be gitignored during our development
  • user will most likely add it to .gitignore again

So, wondering, how do you see adjusting .env to the boilerplates?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I see why using a template was chosen. I think copying from a template is okay, although I wonder if moving the file would be better.

@ksvirkou-hubspot ksvirkou-hubspot merged commit 1df31de into master Apr 6, 2021
@ksvirkou-hubspot ksvirkou-hubspot deleted the feature/createDotEnv branch April 6, 2021 14:51
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

Successfully merging this pull request may close these issues.

4 participants