Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Fix exception when all options are passed via environment variables #100

Merged
merged 2 commits into from
Apr 20, 2020

Conversation

kezhenxu94
Copy link
Member

When starting the egg application with plain node command and all arguments are passed via environment variables, exception is thrown,

egg.startCluster(
  {
    workers,
    baseDir: __dirname,
    port: Number(process.env.PORT) || 3000,
  },
  () => {
    console.info('start server');
  },
);

command: node --require skyapm-egg-require server.js

exception:

undefined:1

@kezhenxu94 kezhenxu94 added the enhancement New feature or request label Apr 20, 2020
@kezhenxu94 kezhenxu94 merged commit 56fec9e into master Apr 20, 2020
@kezhenxu94 kezhenxu94 deleted the defect/empty-arg branch April 20, 2020 09:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant