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

Update .env.example #5180

Merged
merged 2 commits into from
Aug 4, 2022
Merged

Update .env.example #5180

merged 2 commits into from
Aug 4, 2022

Conversation

nikhilmuz
Copy link

Added default database name config in example env file

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Fixed non-breaking documentation file so it won't affect the working of the codebase.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Added default database name config in example env file
@pranavrajs
Copy link
Member

Screenshot 2022-08-03 at 2 19 13 PM

@nikhilmuz Any context on why this was added would be helpful. There is already a default in the database.yml file.

@nikhilmuz
Copy link
Author

nikhilmuz commented Aug 3, 2022 via email

@pranavrajs
Copy link
Member

@nikhilmuz Unfortunately, this cannot be merged directly. The database name is different in different ENVs. A default on the sample env file might create confusion due to this case. Since we don't have the variable defined in the sample env, we can merge it with a small change. Let me know if the change works.

.env.example Outdated Show resolved Hide resolved
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
@nikhilmuz
Copy link
Author

Yes, the change works. I had a hard time changing the DB parameters for the name yesterday and had to dig deeper into ruby code to figure out the same so at least having params in sample .env makes sense. And for my case, the DB name which I got was as committed but now I realised that's different on different builds. Anyway, I have updated the same.

@pranavrajs pranavrajs merged commit d55a8f7 into chatwoot:develop Aug 4, 2022
@pranavrajs
Copy link
Member

@nikhilmuz Sure, makes sense. Thanks for the contribution. ❤️

@github-actions
Copy link

github-actions bot commented Sep 3, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants