sample-app-aoai-chatGPT icon indicating copy to clipboard operation
sample-app-aoai-chatGPT copied to clipboard

Building a custom portal

Open NorEliYehShi opened this issue 1 year ago • 3 comments

I am interested in developing a personalized website using this repository as a foundation. I have cloned the repo and established a new container without modifying its contents. Subsequently, I specified the new container in the deployment.json file. However, upon deployment, the web application does not function as expected. Could you please advise on any potential oversights or provide a comprehensive guide for this process? My primary objective is to alter the website's branding. Thanks

NorEliYehShi avatar Sep 27 '23 10:09 NorEliYehShi

I cloned the repo and built a container from it. When I run it locally, it replies on port 80 properly. But after its deployment in azure webapp, this error is received:

`2023-09-27T21:06:15.695Z INFO - Initiating warmup request to container webaichatvrt3_0_32258541 for site webaichatvrt3

2023-09-27T21:06:15.704Z ERROR - Container webaichatvrt3_0_32258541 for site webaichatvrt3 has exited, failing site start

2023-09-27T21:06:15.709Z ERROR - Container webaichatvrt3_0_32258541 didn't respond to HTTP pings on port: 80, failing site start. See container logs for debugging.`

NorEliYehShi avatar Sep 27 '23 21:09 NorEliYehShi

Hi @NorEliYehShi if you're still having trouble, you might try building and running locally and then deploying with az webapp up as described in the README

sarah-widder avatar Nov 09 '23 00:11 sarah-widder

Hi @sarah-widder , I managed to solve it. Mac users should add --platform=linux/amd64 to their build command, for example: docker build --platform=linux/amd64 -t acr.azurecr.io/aichat:01 -f WebApp.Dockerfile .

NorEliYehShi avatar Nov 09 '23 01:11 NorEliYehShi