Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.75k stars 875 forks source link

Configuration issue when deploying to Azure App Service #841

Open tioans opened 5 months ago

tioans commented 5 months ago

Describe the bug When deploying the application to Azure App Service, chainlit (1.0.401) loses all configuration options set in '.chainlit/config.toml' and doesn't load my custom css/icons under '/public' (defaults to standard options). However, when running the application locally, it works as expected and retains all configuration options.

To Reproduce Steps to reproduce the behavior:

  1. Set up the application with desired configuration options in '.chainlit/config.toml' and custom css/icons under /public.
  2. Deploy the application to Azure App Service.
  3. Access the deployed application.
  4. Notice that the configuration options previously set are not reflected in the deployed application.

Expected behavior The deployed application on Azure App Service should retain and reflect all configuration options set in the config files.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context This issue only occurs when the application is deployed to Azure App Service. When running the application locally, it works as expected.

nhhung1810 commented 1 month ago

Don't know if you fixed this, but if you used Python deployment on Azure App Service, I suggest you switch to Custom Container deployment on Azure App Service, as that will have better logging. You can also run the docker container on your local machine before deploy into app service, which lower the chance something break.