cameri / nostream

A Nostr Relay written in TypeScript
MIT License
745 stars 193 forks source link

Pre-load dotenv to properly load db env variables #186

Closed benpbolton closed 1 year ago

benpbolton commented 1 year ago

Minor update to README for UX.

Description

Adding a NODE_OPTIONS preface to the command to pre-load dotenv

Motivation and Context

When a user specifies custom database parameters in .env, these are not currently loaded during an npm run db:migrate. Pre-loading dotenv through the NODE_OPTIONS is a low-lift one-line option to assist someone walking step-by-step through the instructions.

How Has This Been Tested?

Personal experience:)

Screenshots (if appropriate):

Screen Shot 2023-02-08 at 5 17 10 PM

Types of changes

Checklist:

benpbolton commented 1 year ago

Happy to close this if it's undesirable to leverage the existing dotenv stuffs, even the npm run start standalone instruction could potentially benefit from this.

cameri commented 1 year ago

Hi thanks for your contribution! Could you please update your commit message so it complies with Conventional Commits? it's failing because it's missing a prefix: https://www.conventionalcommits.org/en/v1.0.0/#summary

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.22.5 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: