fix some shard stuff on linux

This commit is contained in:
Amish Shah
2016-10-26 20:15:56 +01:00
parent 00fe45f6b3
commit 1a3ea65abd
2 changed files with 4 additions and 5 deletions

View File

@@ -29,10 +29,9 @@ class Shard {
* The environment variables for the shard
* @type {Object}
*/
this.env = {
SHARD_ID: this.id,
SHARD_COUNT: this.manager.totalShards,
};
this.env = Object.assign({}, process.env);
this.env.SHARD_ID = this.id;
this.env.SHARD_COUNT = this.manager.totalShards;
if (this.manager.token) this.env.CLIENT_TOKEN = this.manager.token;
/**