mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Change deploy:function hook behavior
This commit is contained in:
parent
ee4123436f
commit
86b8ef729c
@ -32,12 +32,12 @@ class AwsDeployFunction {
|
||||
.spawn('package:function'),
|
||||
|
||||
'deploy:function:deploy': () => BbPromise.bind(this)
|
||||
.then(this.deployFunction)
|
||||
.then(() => {
|
||||
if (this.options['update-config']) {
|
||||
this.updateFunctionConfiguration();
|
||||
if (!this.options['update-config']) {
|
||||
this.deployFunction();
|
||||
}
|
||||
})
|
||||
.then(this.updateFunctionConfiguration)
|
||||
.then(() => this.serverless.pluginManager.spawn('aws:common:cleanupTempDir')),
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user