mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
'publish now' uses force_https_urls:on - closes #333
This commit is contained in:
parent
f24b49a1a8
commit
b320f58d13
2 changed files with 7 additions and 1 deletions
|
|
@ -191,6 +191,12 @@ def publish(
|
||||||
|
|
||||||
if publisher == "now":
|
if publisher == "now":
|
||||||
_fail_if_publish_binary_not_installed("now", "Zeit Now", "https://zeit.co/now")
|
_fail_if_publish_binary_not_installed("now", "Zeit Now", "https://zeit.co/now")
|
||||||
|
if extra_options:
|
||||||
|
extra_options += " "
|
||||||
|
else:
|
||||||
|
extra_options = ""
|
||||||
|
extra_options += "--config force_https_urls:on"
|
||||||
|
|
||||||
with temporary_docker_directory(
|
with temporary_docker_directory(
|
||||||
files,
|
files,
|
||||||
name,
|
name,
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ FROM python:3.6
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
{spatialite_extras}
|
{spatialite_extras}
|
||||||
RUN pip install {install_from}
|
RUN pip install -U {install_from}
|
||||||
RUN datasette inspect {files} --inspect-file inspect-data.json
|
RUN datasette inspect {files} --inspect-file inspect-data.json
|
||||||
EXPOSE 8001
|
EXPOSE 8001
|
||||||
CMD [{cmd}]'''.format(
|
CMD [{cmd}]'''.format(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue