Deploying a Django project to Cloud Run with Cloud SQL database

preview_player
Показать описание
Git template:

OUTLINE
Install Django and Gunicorn - 00:27
Initialize an empty Django project - 01:10
Create a docker image - 01:56
Create a new repository on Artifact Registry - 03:24
Tag the docker image - 03:59
Push the docker image to Artifact Registry - 05:17
Deploy the image to Cloud Run - 05:48
Setting ALLOWED_HOST - 06:31
Create a Cloud SQL database - 08:35
Download Cloud SQL proxy - 10:07
Start Cloud SQL proxy - 10:35
Add database settings - 11:00
Install psycopg2 - 11:55
Migrate database - 12:43
Create a superuser - 13:00
Prepare for deployment - 14:20
Modify database settings for deployment - 15:41
Configure CSRF settings - 17:49
Attach Cloud SQL instance to Cloud Run Deployment - 19:18
Update CLOUDRUN_SERVICE_URL variable - 20:45
Configure static files settings - 22:30
Run the collectstatic command -25:30

Links:

Special thanks to:

@djangoroad

Made with Clipchamp
Рекомендации по теме
Комментарии
Автор

Thank you very much! For macbook air m1 the commands slightly differs but in general it works. I could repeat the actions

viktorshvets