chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Configuration issue when deploying to Azure App Service

Open tioans opened this issue 1 year ago • 1 comments
trafficstars

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):

  • OS: Linux
  • Browser: Edge, Firefox
  • Version: 122, 124

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

tioans avatar Mar 22 '24 09:03 tioans

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.

nhhung1810 avatar Jul 28 '24 05:07 nhhung1810