GOOGLE ADS

viernes, 22 de abril de 2022

Implementar aplicación en subdirectorio: Azure

Tengo una aplicación de microservicios en una subcarpeta del repositorio de github. Estoy tratando de implementarlo en Azure.

Descubrí que si agrego .deploymentun archivo en mi directorio raíz, Azure implementará automáticamente la aplicación que se encuentra en la ruta dada. Aquí

He probado lo siguiente,

[config]
project = myFlaskProject/helloFlask

Azure construye el proyecto con éxito, pero aún así me da You do not have permission to view this directory or page.No estoy seguro de por qué, ¿alguna idea?

PD Funciona bien si mantengo todos los archivos de la aplicación en mi directorio raíz.

Aquí está el repositorio de pruebas de demostración que he creado. Hola Mundo Flash Repo

Y aquí está la demostración en vivo del sitio.

Aquí están los registros de compilación de Azure,

Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "D:\home\site\repository" -o "D:\home\site\deployments\tools" --python --sitePath "D:\home\site\repository\flask\helloWorld"'.
The site directory path:.\flask\helloWorld
Generating deployment script for python Web Site
Generated deployment script files
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling python deployment.
KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot'
Copying file: 'requirements.txt'
Copying file: 'web.2.7.config'
Copying file: 'web.3.4.config'
Copying file: 'flask\helloWorld\.gitignore'
Copying file: 'flask\helloWorld\index.html'
Copying file: 'flask\helloWorld\LICENSE'
Copying file: 'flask\helloWorld\main.py'
Copying file: 'flask\helloWorld\ptvs_virtualenv_proxy.py'
Copying file: 'flask\helloWorld\README.md'
Copying file: 'flask\helloWorld\requirements.txt'
Copying file: 'flask\helloWorld\web.2.7.config'
Copying file: 'flask\helloWorld\web.3.4.config'
Detected requirements.txt. You can skip Python specific steps with a.skipPythonDeployment file.
Detecting Python runtime from site configuration
Detected python-2.7
Found compatible virtual environment.
Pip install requirements.
Requirement already satisfied (use --upgrade to upgrade): Flask==0.12.1 in d:\home\site\wwwroot\env\lib\site-packages (from -r requirements.txt (line 1))
Cleaning up...
Overwriting web.config with web.2.7.config
1 file(s) copied.
Finished successfully.


Solución del problema

Hay un error en la implementación de Python de Azure. Pero hay un trabajo alrededor de él hasta que lo arreglen. Lea mi problema aquí

No hay comentarios.:

Publicar un comentario

Flutter: error de rango al acceder a la respuesta JSON

Estoy accediendo a una respuesta JSON con la siguiente estructura. { "fullName": "FirstName LastName", "listings...