Application error

Amit Developer- Atlantic 20 Reputation points
2025-05-01T10:44:18.74+00:00

Hi there, I created a web app. when I deploy my code its shows an error on front end "Application Error"

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
{count} votes

Accepted answer
  1. Sampath 3,750 Reputation points Microsoft External Staff Moderator
    2025-05-08T09:38:31.0166667+00:00

    Hi Amit Developer- Atlantic,

    Create the startup script in your project directory. You can name it startup.sh.

    Add your startup command inside the file. Below is sample Example for Flask with custom command:

    gunicorn -b  0.0.0.0:8000  app:app    
    

    Commit the file to your code repository.

    In the Azure Portal :

    • Go to your App Service → ConfigurationGeneral settings.
    • In Startup Command, enter: ./startup.sh
    • Click Save, then Continue when prompted to restart the service.

    Please don’t forget to click "Accept the answer" and click "Yes" .So it can be helpful for others with similar questions.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.