Skip to content

Commit e6348e2

Browse files
committed
last touches
1 parent 2c19c45 commit e6348e2

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

services/static-webserver/client/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ compile-dev: qx_packages source-output ## qx compiles host' 'source' -> host's '
3535
--set-env osparc.vcsRefClient="${VCS_REF_CLIENT}" \
3636
--set-env osparc.vcsStatusClient="${VCS_STATUS_CLIENT}" \
3737
--set-env osparc.vcsOriginUrl="${VCS_URL}"
38-
python ./scripts/post-compile.py ${VCS_REF_CLIENT}
38+
python ./scripts/post-compile.py
3939

4040
.PHONY: follow-dev-logs
4141
follow-dev-logs: ## follow the logs of the qx compiler
@@ -53,7 +53,7 @@ compile: ## qx compiles host' 'source' -> image's 'build-output'
5353
--build-arg VCS_STATUS_CLIENT=${VCS_STATUS_CLIENT} \
5454
--build-arg VCS_URL=${VCS_URL} \
5555
--target=build-client .
56-
python ./scripts/post-compile.py ${VCS_REF_CLIENT}
56+
python ./scripts/post-compile.py
5757

5858
touch: ## minimal image build with /project/output-build inside
5959
# touch /project/output-build such that multi-stage 'services/web/Dockerfile' can build development target (fixes #1097)

services/static-webserver/client/scripts/post-compile.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import json
22
import os
33
import random
4-
import sys
54

65
output_folders = [
76
"source-output", # dev output
@@ -54,9 +53,6 @@ def _get_output_file_paths(filename):
5453

5554

5655
def add_no_cache_param(vcs_ref_client):
57-
if not vcs_ref_client:
58-
vcs_ref_client = str(random.random())
59-
6056
index_file_paths = _get_output_file_paths("index.html")
6157
for index_file_path in index_file_paths:
6258
if not os.path.isfile(index_file_path):
@@ -82,7 +78,5 @@ def add_no_cache_param(vcs_ref_client):
8278

8379
if __name__ == "__main__":
8480
update_apps_metadata()
85-
vcs_ref_client = None
86-
if len(sys.argv) > 1:
87-
vcs_ref_client = sys.argv[1]
81+
vcs_ref_client = os.getenv("VCS_REF_CLIENT", str(random.random()))
8882
add_no_cache_param(vcs_ref_client)

0 commit comments

Comments
 (0)