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

Allow Pantry to Run in Development Mode #96

Merged
merged 1 commit into from
Sep 13, 2021
Merged

Allow Pantry to Run in Development Mode #96

merged 1 commit into from
Sep 13, 2021

Conversation

imRohan
Copy link
Owner

@imRohan imRohan commented Sep 12, 2021

We have to somehow create a "development mode" for the app. The problem
developers are currently facing is that they have to remove lines of code to
bypass the recaptcha because they do not have a valid secret key.

It would be useful if we somehow added a development mode to bypass the
recaptcha, & other prod-specific service functions.

  • Adds an environment service to check if Pantry is running in development mode
  • Adds a new env var in sample.env called NODE_ENV. If set to 'development' then
    Pantry will run in development mode.
  • Preventing Pantry from publishing Slack messages, posting to the CRM and
    disabling the recaptcha when running in development mode

Resolves #90

@imRohan imRohan added the Ready for Review Once you've squashed your commits, the PR is now ready for review! label Sep 12, 2021
@imRohan imRohan self-assigned this Sep 12, 2021
We have to somehow create a "development mode" for the app. The problem
developers are currently facing is that they have to remove lines of code to
bypass the recaptcha because they do not have a valid secret key.

It would be useful if we somehow added a development mode to bypass the
recaptcha, & other prod-specific service functions.

* Adds an environment service to check if Pantry is running in development mode
* Adds a new env var in sample.env called NODE_ENV. If set to 'development' then
* Pantry will run in development mode.
* Preventing Pantry from publishing Slack messages, posting to the CRM and
  disabling the recaptcha when running in development mode

Resolves #90
@imRohan imRohan merged commit bcda0ab into master Sep 13, 2021
@imRohan imRohan deleted the rl-add-dev-mode branch September 13, 2021 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Review Once you've squashed your commits, the PR is now ready for review!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Pantry to Run in Development Mode
1 participant