File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
services/static-webserver/client Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff 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
4141follow-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
5858touch : # # 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)
Original file line number Diff line number Diff line change 11import json
22import os
33import random
4- import sys
54
65output_folders = [
76 "source-output" , # dev output
@@ -54,9 +53,6 @@ def _get_output_file_paths(filename):
5453
5554
5655def 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
8379if __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 )
You can’t perform that action at this time.
0 commit comments