mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Enable --cors by default in containers
This commit is contained in:
parent
5928c11ee7
commit
00527e5c62
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ def escape_sqlite_table_name(s):
|
|||
def make_dockerfile(files, metadata_file, extra_options=''):
|
||||
cmd = ['"datasette"', '"serve"']
|
||||
cmd.append('"' + '", "'.join(files) + '"')
|
||||
cmd.extend(['"--port"', '"8001"', '"--inspect-file"', '"inspect-data.json"'])
|
||||
cmd.extend(['"--cors"', '"--port"', '"8001"', '"--inspect-file"', '"inspect-data.json"'])
|
||||
if metadata_file:
|
||||
cmd.extend(['"--metadata"', '"{}"'.format(metadata_file)])
|
||||
if extra_options:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue