File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,13 +115,17 @@ jobs:
115115 - name : Zappa Update
116116 run : uv run zappa update ${{ env.API_STAGE }} --docker-image-uri ${{ env.AWS_ECR_REGISTRY }}:${{ steps.info.outputs.TAG }}
117117
118+ - name : Django collect staticfiles
119+ run : uv run zappa manage ${{ env.API_STAGE }} "collectstatic --no-input"
120+
121+ # Django migrate
122+ - name : Django migrate
123+ run : uv run zappa manage ${{ env.API_STAGE }} "migrate --noinput"
124+
118125 # Zappa certify
119126 - name : Zappa Certify
120127 run : uv run zappa certify ${{ env.API_STAGE }} --yes
121128
122- - name : Collect staticfiles
123- run : uv run zappa manage ${{ env.API_STAGE }} "collectstatic --no-input"
124-
125129 # Notify to Slack (Success)
126130 - name : Notify deployment to Slack
127131 if : failure() || cancelled()
Original file line number Diff line number Diff line change 274274DEFAULT_STORAGE_BACKEND = env ("DJANGO_DEFAULT_STORAGE_BACKEND" , default = "storages.backends.s3.S3Storage" )
275275STATIC_STORAGE_BACKEND = env ("DJANGO_STATIC_STORAGE_BACKEND" , default = "storages.backends.s3.S3Storage" )
276276
277- STORAGE_BUCKET_NAME = f"pyconkr-backend-api- { API_STAGE } "
277+ STORAGE_BUCKET_NAME = f"pyconkr-backend-{ API_STAGE } "
278278STORAGE_OPTIONS = (
279279 {
280280 "bucket_name" : STORAGE_BUCKET_NAME ,
You can’t perform that action at this time.
0 commit comments