Skip to content

Commit

Permalink
Merge bfdcf11 into eeb0deb
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-kuzmenko committed Oct 21, 2018
2 parents eeb0deb + bfdcf11 commit 174ced0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion s3_deploy/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,16 @@ def deploy(conf, base_path, force, dry):
"""Deploy using given configuration."""
bucket_name = conf['s3_bucket']
cache_rules = conf.get('cache_rules', [])
endpoint_url = conf.get('endpoint_url')

if conf.get('s3_reduced_redundancy', False):
storage_class = _STORAGE_REDUCED_REDUDANCY
else:
storage_class = _STORAGE_STANDARD

logger.info('Connecting to bucket {}...'.format(bucket_name))

s3 = boto3.resource('s3')
s3 = boto3.resource('s3', endpoint_url=endpoint_url)
bucket = s3.Bucket(bucket_name)

site_dir = os.path.join(base_path, conf['site'])
Expand Down

0 comments on commit 174ced0

Please sign in to comment.