Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Remove redundant bucket creation
Browse files Browse the repository at this point in the history
Thanks for @HuEric! This commit is motivated by the issue #97.
  • Loading branch information
ar90n committed Jul 18, 2020
1 parent 29ddef4 commit b1fda3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/simple_put/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b1fda3b

Please sign in to comment.