{"id":16809747,"url":"https://github.com/adiroiban/azure-web-app-klein","last_synced_at":"2025-03-17T10:23:01.647Z","repository":{"id":138878371,"uuid":"126552280","full_name":"adiroiban/azure-web-app-klein","owner":"adiroiban","description":"Example of how to run a simple Klein based server on Azure Web Services as an Web App.","archived":false,"fork":false,"pushed_at":"2018-03-24T00:46:46.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T19:51:16.123Z","etag":null,"topics":["azure","azure-app-service","klein","twisted"],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adiroiban.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-24T00:37:04.000Z","updated_at":"2018-03-24T00:47:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"844d3512-3f2d-4f61-a7e5-c29b4ed45c9b","html_url":"https://github.com/adiroiban/azure-web-app-klein","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiroiban%2Fazure-web-app-klein","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiroiban%2Fazure-web-app-klein/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiroiban%2Fazure-web-app-klein/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adiroiban%2Fazure-web-app-klein/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adiroiban","download_url":"https://codeload.github.com/adiroiban/azure-web-app-klein/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014132,"owners_count":20383716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-app-service","klein","twisted"],"created_at":"2024-10-13T10:13:46.119Z","updated_at":"2025-03-17T10:23:01.512Z","avatar_url":"https://github.com/adiroiban.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example Twisted Klein for Azure Web App\n=======================================\n\nBase on:\n\n* https://prmadi.com/django-app-with-httpplatformhandler-in-azure-app-services-windows/\n* https://github.com/prashanthmadi/azure-django-httphandler\n\n\nAzure Configuration\n-------------------\n\nIt uses the Azure App Services and runs as a Web App.\n\nIn Azure Portal, go to \"Deployment Options\" and configure \"Local Git\".\nAlso configure an username and password for \"Deployment Credentials\".\nThis will create a dedicated Git repo for hosting the files.\n\nFrom the \"Development tools -\u003e Extensions\" of the Web App,\nenable Python 2.7.14 32 bit.\nIt used Python 2.7 as for now this is the version of Twisted for which there\nis a wheel on PyPI.\n\n\nAzure Deployment\n----------------\n\nEach time you push to this repo, it will run the the `deploy.cmd` on the\nremote server.\n\nIt uses a custom deployment script.\n\nIt uses the IIS HTTP Handler to start the Twisted Web.\nFor HTTP Handler configuration see:\nhttps://docs.microsoft.com/en-us/iis/extensions/httpplatformhandler/httpplatformhandler-configuration-reference\n\nThe HTTP Handler logs on Azure as stored in D:\\home\\LogFiles\\python.log.\nYou can use the \"Console\" from the Azure Portal and check those logs.\n\n\nLocal Development\n-----------------\n\nAzure will run it on Window.\nFor development on Linux, you can use the requirements-linux.txt file inside\na virtual environment.\n\nFrom the virtualenv use this to run on port 8080::\n\n    virtualen build\n    . build/bin/activate\n    pip install -r requirements-linux.txt\n    python -m twisted web -p tcp:8080 --class=twistdPlugin.resource\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadiroiban%2Fazure-web-app-klein","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadiroiban%2Fazure-web-app-klein","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadiroiban%2Fazure-web-app-klein/lists"}