Add gunicorn_config.py

This commit is contained in:
Joshua Askharoun
2021-04-17 16:46:34 -05:00
parent 277cecbead
commit baa3fd78cd
3 changed files with 6 additions and 15 deletions
+2 -14
View File
@@ -1,18 +1,6 @@
---
page_type: sample
description: "A minimal sample app that can be used to demonstrate deploying Flask apps to Azure App Service on Linux."
languages:
- python
products:
- azure
- azure-app-service
---
# PyZuneCatalogServer
# Python Flask sample for Azure App Service (Linux)
This is a minimal Flask app that can be deployed to Azure App Service on Linux.
For instructions on running and deploying the code, see [Quickstart: Create a Python app in Azure App Service on Linux](https://docs.microsoft.com/azure/app-service/quickstart-python).
This repository houses a community effort to recreate the Zune Marketplace servers.
## Contributing
+2 -1
View File
@@ -8,6 +8,7 @@ from atom.factory import *
from locale import *
locale = getdefaultlocale()[0]
app = Flask(__name__)
musicbrainzngs.set_useragent("Zune", "4.8", "https://github.com/yoshiask/PyZuneCatalogServer")
@@ -121,7 +122,7 @@ def music_album_details(id: str, fragment: str, locale: str):
# Get artist information
@app.route(f"/v3.2/<string:locale>/music/artist/<string:id>/")
def music_get_artist(id: str, locale: str):
return music_get_artist_tracks(id)
return music_get_artist_tracks(id, locale)
# Get artist's tracks
+2
View File
@@ -0,0 +1,2 @@
bind = "0.0.0.0:80"
workers = 2