-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to run locally on Windows #68
Comments
Interesting, I didn't realize gunicorn didn't work on Windows. It should work inside a Dev Container in VS Code in Windows. We can probably figure out commands for each framework that will work locally on Windows - flask has its own dev server, django has its own dev server, and fastapi can be run with uvicorn. |
@v-jiaodi can you try to run locally again? |
@kjaymiller The issue still exists. |
@v-jiaodi Can you confirm that you tried the new instructions in the updated README? https://github.com/Azure-Samples/azure-django-postgres-flexible-aca#running-locally It now says: python3 src/manage.py runserver 8000 That does not use gunicorn, so I hope is that it works for you. |
@pamelafox It works with the new instructions The following templates still has this issue: |
@v-jiaodi We have merged the README updates to those repos. Can you take a look and confirm that works for you? |
It works. |
Describe the issue:
When test
Running locally
on Windows, runpython -m gunicorn project.wsgi:application --pythonpath src --reload
, get error as follow:Repro Steps:
python -m pip install -r src/requirements.txt
python src/manage.py migrate
python src/manage.py loaddata src/seed_data.json
python src/manage.py collectstatic
python -m gunicorn project.wsgi:application --pythonpath src --reload
Environment:
https://github.com/Azure-Samples/azure-django-postgres-flexible-appservice
https://github.com/Azure-Samples/azure-django-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-django-cosmos-postgres-appservice
https://github.com/Azure-Samples/azure-django-postgres-addon-aca
https://github.com/Azure-Samples/azure-flask-postgres-flexible-aca
https://github.com/Azure-Samples/azure-flask-postgres-flexible-appservice
https://github.com/Azure-Samples/azure-flask-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-flask-cosmos-postgres-appservice
https://github.com/Azure-Samples/azure-flask-postgres-addon-aca
https://github.com/Azure-Samples/azure-flask-cosmos-mongodb-aca
https://github.com/Azure-Samples/azure-flask-cosmos-mongodb-appservice
https://github.com/Azure-Samples/azure-fastapi-postgres-flexible-aca
https://github.com/Azure-Samples/azure-fastapi-postgres-flexible-appservice
https://github.com/Azure-Samples/azure-fastapi-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-fastapi-cosmos-postgres-appservice
https://github.com/Azure-Samples/azure-fastapi-postgres-addon-aca
Expected behavior:
Please confirm if it can be supported on Windows. If so, it is expected that
Run locally
will pass.@pamelafox for notification.
The text was updated successfully, but these errors were encountered: