diff --git a/example/simple_put/serverless.yml b/example/simple_put/serverless.yml index 5f21627f..b5b448f2 100644 --- a/example/simple_put/serverless.yml +++ b/example/simple_put/serverless.yml @@ -15,6 +15,7 @@ custom: # Properties: # BucketName: ${self:service}-data s3: + host: localhost port: 8000 directory: ./s3-local # Uncomment the first line only if you want to use cors with specified policy diff --git a/index.js b/index.js index d53ae362..445788fb 100644 --- a/index.js +++ b/index.js @@ -229,7 +229,7 @@ class ServerlessS3Local { this.options.port = bindedPort; this.serverless.cli.log(`S3 local started ( port:${bindedPort}, family: ${family}, address: ${bindedAddress} )`); - this.createBuckets().then(resolve, reject); + resolve(); }); this.serverless.cli.log('starting handler'); this.subscribe();