Merge pull request #114 from cubedro/develop
Fixed ec2metadata not found error
This commit is contained in:
commit
08ae5714a1
@ -45,7 +45,7 @@ Socket = Primus.createSocket({
|
|||||||
|
|
||||||
if(process.env.NODE_ENV === 'production' && INSTANCE_NAME === "")
|
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('');
|
console.log('');
|
||||||
|
Loading…
Reference in New Issue
Block a user