Skip to content

cubejs create should generate a .gitignore file to avoid .env being version controlled #402

@FanaHOVA

Description

@FanaHOVA

Is your feature request related to a problem? Please describe.
When you create a new Cube.js project, it asks to add your database credentials to the .env. The problem is that .env is version controlled by default, which can accidentally expose a lot of database credentials and Cube API secrets on GitHub/GitLab if developers don't remember to add a .gitignore to exclude it.

Describe the solution you'd like
cubejs create should generate a .gitignore file with .env in it.

Describe alternatives you've considered
I'm creating this manually at the moment.

Additional context
Happy to open a PR for this, but wasn't sure if there was a reason why it didn't exist already. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementLEGACY. Use the Feature issue type insteadhelp wantedCommunity contributions are welcome.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions