[Python] Why does Azure not get filed from Github?

Discussão em 'Python' iniciado por Stack, Fevereiro 20, 2025.

  1. Stack

    Stack Membro Participativo

    My Python Flask app deployed on Azure Web Apps fails to start because required files (run.py, config.py, etc.) are missing from /home/site/wwwroot/. Instead, only hostingstart.html and output.tar.gz are present. Logs show:

    ModuleNotFoundError: No module named 'run'


    Azure repeatedly starts and stops the container (~50s intervals), failing to respond on port 8000. GitHub Actions successfully completes the deployment, but files never appear in wwwroot.

    Troubleshooting Done:

    • Checked Kudu (ls -l /home/site/wwwroot/) → Files missing Forced
    • GitHub sync: az webapp deployment source sync
    • Tried ZIP deployment: az webapp deployment source config-zip --src buddyapp.zip
    • Restarted web app: az webapp restart Still missing files, container keeps restarting.

    How can I ensure Azure correctly deploys all application files?

    Continue reading...

Compartilhe esta Página