Closed Niklasschoenb closed 5 years ago
Hello @Niklasschoenb. Thanks for opening the issue. Can you please provide the following additional info to better understand your case:
cf-html5-apps-repo-cli-plugin
for Windows (1.0.0) or you compiled it from source code?cf html5-list
)? In case there is more than one version, are you trying to deploy the latest version?cf html5-list <app_name>
, where <app_name>
is in the same format as printed by
cf html5-list
without arguments)?NGPBUG-76291
@micellius It seems like the issue still occurs under linux if the PATH_TO_APP_FOLDER argument is not a relative path, but an absolute one.
@Niklasschoenb
Thanks for reporting an issue. I tried to reproduce it and figured out that it is not relevant to absolute or relative path. It is even not the issue with slashes. GO relies on existence of $TMPDIR
environment variable to get temporary directory path, which is used to store temporary zip of application folder by html5-plugin. On some Linux distributions (I managed to reproduce it on RHEL 7.3) this variable is not set. Therefore, you can easily fix it by export TMPDIR=/tmp/
(don't forget trailing slash) before running cf html5-push ...
. Anyway, I'll address this issue in one of the next commits.
Assume the following folder structure:
Now I run the command "cf html5-push dist ""
While the command is being executed, I grab the zip file that is generated.
It has the following content structure:
Of course my webapp won't be able to load the css / i18n files because there is a superfluous "dist" + folder name in the path. But what is really strange, even when adding the superfluous "dist" + folder name in the url path to the resource files, the files are not found. Only the files under the root level such as "Component.js" are found. This happens under Windows, cf cli version 6.38