Fix path again

This commit is contained in:
Girish Ramakrishnan 2015-07-22 21:02:21 -07:00
parent 4d3b296dc3
commit eafda6ce77
1 changed files with 3 additions and 3 deletions

View File

@ -18,10 +18,10 @@ function AppStore(origin) {
accessToken: null
};
if (fs.existsSync(path.join(__dirname, 'ecosystem-staging.json'))) {
this._ecosystem = require(path.join(__dirname, 'ecosystem-staging.json')); // staging appstore
if (fs.existsSync(path.join(__dirname, '../ecosystem.json'))) {
this._ecosystem = require(path.join(__dirname, '../ecosystem.json')); // staging appstore
} else {
this._ecosystem = require(path.join(__dirname, '..', 'keys', 'appstore', 'ecosystem-staging.json'));
this._ecosystem = require(path.join(__dirname, '../keys/appstore/ecosystem-staging.json'));
}
}