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

Fixed the Cookbook systemd unit to use Environment= for NODE_ENV #123

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

zerodogg
Copy link
Contributor

ExecStart is not run with /bin/sh, so setting NODE_ENV there doesn't work and results in: Failed at step EXEC spawning NODE_ENV=production: No such file or directory.

Setting NODE_ENV in an Environment="" fixes this.

@zerodogg zerodogg changed the title Fixed the Cookbok systemd unit to use Environment= for NODE_ENV Fixed the Cookbook systemd unit to use Environment= for NODE_ENV Apr 25, 2024
@kraih
Copy link
Member

kraih commented Apr 25, 2024

The commit message has a typo.

@zerodogg
Copy link
Contributor Author

Force pushed an update

kraih
kraih previously approved these changes Apr 25, 2024
ExecStart is not run with /bin/sh, so setting NODE_ENV there doesn't work and
results in: Failed at step EXEC spawning NODE_ENV=production: No such file or
directory.

Setting NODE_ENV in an Environment="" fixes this.
@zerodogg
Copy link
Contributor Author

Sorry, updated it again. I noticed that there was another ExecStart a bit further down in the document that also had the NODE_ENV=.. syntax.

@kraih kraih merged commit 0a9f3f7 into mojolicious:main Apr 26, 2024
10 checks passed
@kraih
Copy link
Member

kraih commented Apr 26, 2024

Thanks.

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.

None yet

2 participants