Skip to content

Commit b63014a

Browse files
15 - Deploy to Cloud Run
1 parent 5b78b6a commit b63014a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

scripts/deploy.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
gcloud run deploy serverless-django \
2+
--image gcr.io/serverless-cfe/serverless-django \
3+
--platform managed \
4+
--region us-west1 \
5+
--allow-unauthenticated \
6+
--project serverless-cfe

scripts/deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
gcloud run deploy serverless-django \
2+
--image gcr.io/serverless-cfe/serverless-django \
3+
--platform managed \
4+
--region us-west1 \
5+
--allow-unauthenticated \
6+
--project serverless-cfe

serverless_django/settings/production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from .installed import *
77

8-
ALLOWED_HOSTS = ['*']
8+
ALLOWED_HOSTS = ['serverless-django-un3qlwrkgq-uw.a.run.app']
99
DEBUG = False
1010

1111
# SECURITY WARNING: keep the secret key used in production secret!

0 commit comments

Comments
 (0)