Switch guincorn port
This commit is contained in:
parent
b8d7cd0f2c
commit
64d4762953
|
|
@ -0,0 +1,7 @@
|
|||
[defaults]
|
||||
group = vbv-prod_group
|
||||
sku = P2v2
|
||||
appserviceplan = prod
|
||||
location = switzerlandnorth
|
||||
web = vbv-prod
|
||||
|
||||
|
|
@ -9,4 +9,4 @@ python /app/manage.py collectstatic --no-input --no-post-process
|
|||
# TODO remove after stabilisation
|
||||
python /app/manage.py reset_schema
|
||||
|
||||
/usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:80 --chdir=/app -k uvicorn.workers.UvicornWorker
|
||||
/usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:7555 --chdir=/app -k uvicorn.workers.UvicornWorker
|
||||
|
|
|
|||
|
|
@ -19,3 +19,9 @@ Deployment for django:
|
|||
https://tonybaloney.github.io/posts/django-on-azure-beyond-hello-world.html
|
||||
|
||||
az webapp deployment user set --user-name <username> --password <password>
|
||||
|
||||
# Docker image for the app
|
||||
|
||||
To be able to pull the docker image from dockerhub you need to create an access token on dockerhub.
|
||||
the access token is then the password in azure and the username is the dockerhub username.
|
||||
|
||||
|
|
|
|||
|
|
@ -9,3 +9,8 @@ az appservice plan create --name prod --resource-group VBV --sku P2V2 --is-linux
|
|||
# create the two applications on Python 3.10, change
|
||||
az webapp create --resource-group VBV --plan stage --name app-stage --runtime "PYTHON|3.10" --deployment-local-git
|
||||
az webapp create --resource-group VBV --plan prod --name app-prod --runtime "PYTHON|3.10" --deployment-local-git
|
||||
|
||||
|
||||
az webapp up --resource-group VBV --plan prod --name app-prod --runtime "PYTHON|3.10" --logs
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue