fixed ec2metadata not found error
This commit is contained in:
parent
9d782eccdf
commit
f92e45e0bb
@ -45,7 +45,7 @@ Socket = Primus.createSocket({
|
||||
|
||||
if(process.env.NODE_ENV === 'production' && INSTANCE_NAME === "")
|
||||
{
|
||||
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output;
|
||||
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id 2>/dev/null', {silent: true}).output;
|
||||
}
|
||||
|
||||
console.log('');
|
||||
|
Loading…
Reference in New Issue
Block a user