Skip to content

Commit

Permalink
ci(docker): fix www generator for app.html name
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jun 3, 2022
1 parent cee6461 commit 6c99fc6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/scripts/generate_www.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def run(apps_path, out_path):
apps_dict = json.load(rf) # noqa

for app_name, config in apps_dict.items():
name = config["app"]
# handle custom modules for www
web_modules = config.get("www_modules")
if web_modules is not None:
cmd = [
Expand All @@ -26,15 +26,16 @@ def run(apps_path, out_path):
*web_modules,
]
subprocess.run(cmd)
print(" => create app: ", app_name, name)

# Create app.html file from index.html
cmd = [
"python",
"-m",
"trame.tools.app",
"--input",
out_path,
"--name",
name,
app_name,
]
subprocess.run(cmd)

Expand Down

0 comments on commit 6c99fc6

Please sign in to comment.