mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
initialize providers *after* the environment has been loaded.
This commit is contained in:
parent
c61e7c3c90
commit
cab7fcd83e
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user