Skip to content

Add dotenv to production commands#8

Open
whoabuddy wants to merge 2 commits into
magicstx:mainfrom
whoabuddy:fix/dotenv
Open

Add dotenv to production commands#8
whoabuddy wants to merge 2 commits into
magicstx:mainfrom
whoabuddy:fix/dotenv

Conversation

@whoabuddy
Copy link
Copy Markdown
Contributor

In #6 I was getting failures both locally and on Render.com in the worker, resulting in: Error: Missing required ENV variable: SUPPLIER_NETWORK

The registration process worked just fine, but after further inspection most commands use yarn r which includes NODE_ENV=development node -r @swc-node/register -r dotenv/config before the command.

This PR adds -r dotenv/config to the three production commands start, server, and worker. It also updates dotenv to the latest version.

I am successfully running my supplier server from this branch, and if it's merged I can restart my Render instance to see if there are any errors.

Fixes #6.

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.

Worker fails to find ENV var and crashes

1 participant