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

fix: wrong dotenv config path in backend/src/setup #821

Conversation

Ankish-Nayak
Copy link

@Ankish-Nayak Ankish-Nayak commented Nov 18, 2023

Description

Wrong dotenv config path for env and env.local in backend/src/setup/setup.js and backend/src/setup/reset.js.

Related Issues

#823

Steps to Test

  1. Create .env.local file in beside .env and copy environments variable from .env to .env.local edit appropriate variable like DATABASE for mongoose uri connection.
  2. Run npm run setup and npm run reset to see whether data in MongoDB cluster is created and removed respectively.

Screenshots (if applicable)

If your changes include visual updates, it would be helpful to provide screenshots of the before and after.

before

reset.js
Screenshot from 2023-11-18 11-54-57

setup.js
Screenshot from 2023-11-18 11-54-49

after
setup.js
Screenshot from 2023-11-18 11-53-54

reset.js
Screenshot from 2023-11-18 11-53-40

Checklist

  • I have tested these changes
  • I have updated the relevant documentation
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the codebase
  • My changes generate no new warnings or errors
  • The title of my pull request is clear and descriptive

@Ankish-Nayak
Copy link
Author

@parteekcoder, @harshitBhardwaj97 guys could you review my pr?

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.

1 participant