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

Default NODE_ENV to "development" if it's undefined when starting jobs worker #11572

Merged
merged 7 commits into from
Sep 18, 2024

Conversation

cannikin
Copy link
Member

This mimics the behavior of yarn rw dev where NODE_ENV will equal development if you don't set it explicitly.

Because of this, you need to make sure you explicitly set it in other environments. You should set NODE_ENV=production in your .env file/Dockerfile on your production server, for example. The docs have been updated to note this.

Closes #11569

@cannikin cannikin added this to the next-release milestone Sep 16, 2024
@cannikin cannikin self-assigned this Sep 16, 2024
@cannikin cannikin added the release:fix This PR is a fix label Sep 16, 2024
@cannikin cannikin merged commit 705ea5b into main Sep 18, 2024
50 checks passed
@cannikin cannikin deleted the rc-jobs-environment branch September 18, 2024 16:32
Josh-Walker-GM pushed a commit that referenced this pull request Sep 19, 2024
…obs worker (#11572)

This mimics the behavior of `yarn rw dev` where `NODE_ENV` will equal
`development` if you don't set it explicitly.

Because of this, you need to make sure you explicitly set it in other
environments. You should set `NODE_ENV=production` in your `.env`
file/Dockerfile on your production server, for example. The docs have
been updated to note this.

Closes #11569
@Josh-Walker-GM Josh-Walker-GM modified the milestones: next-release, v8.3.0 Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug?]: (Jobs) Environment is not correctly set in the Job worker
2 participants