initialize providers *after* the environment has been loaded.

This commit is contained in:
Erik Erikson 2016-03-29 15:07:22 -07:00
parent c61e7c3c90
commit cab7fcd83e

View File

@ -56,8 +56,6 @@ class Serverless {
this.commands = {};
this.cli = null;
this.utils = require('./utils/index');
this.initProviders();
}
/**
@ -93,6 +91,9 @@ class Serverless {
silent: true, // Don't display dotenv load failures for admin.env if we already have the required environment variables
path: path.join(_this.getProject().getRootPath(), 'admin.env')
});
})
.then(function() {
_this.initProviders();
});
}
});