server icon indicating copy to clipboard operation
server copied to clipboard

How to replace PUBLIC_URL or __PUBLIC_URL_PLACEHOLDER__ in web html?

Open youamanb opened this issue 1 year ago • 5 comments

how to generate web path in index.html? like , mypath is self defined

youamanb avatar Mar 08 '24 06:03 youamanb

Hi @youamanb, I'm not sure I fully understand the question. Could you let me know what your goal is by doing this?

nate-wandb avatar Mar 11 '24 18:03 nate-wandb

Hi @nate-wandb , I run the wandb-local docker image with version wandb/local:0.50.2, and in the docker container,I found the index.html file under the folder /var/app/frontend, the "/var/app/frontend/index.html" is generated from "/var/app/orig_frontend/index.html",and PUBLIC_URL_PLACEHOLDER is in /var/app/orig_frontend/index.html.So I want to replace PUBLIC_URL_PLACEHOLDER with my own defined URL prefix such as “wandb-api”,so I hope the generated file "/var/app/frontend/index.html" has content src path like this " ",can we do this?

youamanb avatar Mar 12 '24 04:03 youamanb

Hi @youamanb , you shouldn't need to manually edit these files on your end. Passing the host variable, the FQD of your instance, i.e. https://my.domain.net/ should work. Please set the host and then launch your docker container, you'll see we'll populate the placeholder automatically after parsing it from the host var value. If this doesn't happen in your case, please let us know and we'll investigate this further. Example cmd:

\docker run --rm -d \
   -e HOST=https://YOUR_DNS_NAME \
   -e LICENSE=XXXXX \

anmolmann avatar Apr 26 '24 19:04 anmolmann

  您好,我已收到您的邮件,谢谢!

youamanb avatar Apr 26 '24 19:04 youamanb

Hi @youamanb , I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

anmolmann avatar Apr 30 '24 18:04 anmolmann

Hi @youamanb , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

anmolmann avatar May 03 '24 01:05 anmolmann