Add metadata, if it exists, to heroku temp dir (#178)

This commit is contained in:
Tony Hirst 2018-01-14 21:05:16 +00:00 committed by Simon Willison
commit 3a56a2cd7e

View file

@ -264,6 +264,8 @@ def temporary_heroku_directory(files, name, metadata, extra_options, branch, tem
os.path.join(tmp.name, 'templates')
)
extras.extend(['--template-dir', 'templates/'])
if metadata:
extras.extend(['--metadata', 'metadata.json'])
for mount_point, path in static:
link_or_copy_directory(
os.path.join(saved_cwd, path),