azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Deployment fails as requirements.txt not present in root folder

Open surendransuri opened this issue 1 year ago • 3 comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Azure Deployment is getting failed as requirements.txt file seems to be missing.

surendransuri avatar Feb 09 '24 12:02 surendransuri

The requirements.txt is inside app/backend, and that's what azd deploys per the azure.yaml file. Are you deploying some different way?

pamelafox avatar Feb 09 '24 13:02 pamelafox

I am trying to deploy this Github application in Azure App service. I am using CI/CD process way of deploying this code repo into the Azure app service. During that build fails with that mentioned error

image BuildError

surendransuri avatar Feb 09 '24 13:02 surendransuri

You should cd into app/backend and run the deploy from there, in that case. You'll also need to run npm install from the frontend folder as a first step.

You could also use azd for your CI/CD, we had a stream about that yesterday: https://aka.ms/hacktogether/chatapp/session10

pamelafox avatar Feb 09 '24 14:02 pamelafox