Skip to content

Commit

Permalink
Merge pull request #891 from DemocracyClub/fix-management-handler-path
Browse files Browse the repository at this point in the history
Fix management handler path
  • Loading branch information
symroe authored Nov 6, 2024
2 parents c2dd708 + 5d66f26 commit 728dd51
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# the command will exit 0 even if the invocation failed. The JSON key `FunctionError` will contain something
# if there's an error.
command: |
aws lambda invoke --function-name DCWebsiteManagementFunction --payload '{ "command": "migrate", "args": ["--no-input"] }' --cli-binary-format raw-in-base64-out - | grep 'FunctionError": ""'
aws lambda invoke --function-name DCWebsiteManagementFunction --payload '{ "command": "migrate", "args": ["--no-input"] }' --cli-binary-format raw-in-base64-out - | grep -v 'FunctionError'
- run:
name: "Invalidate CloudFront cache"
command: |
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sam-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Resources:
Timeout: 60
Role: !Sub "arn:aws:iam::${AWS::AccountId}:role/DCWebsiteLambdaExecutionRole"
CodeUri: .
Handler: democracy_club.lambda_wsgi.management_handler
Handler: democracy_club.lambda_manage.management_handler
Layers:
- !Ref DependenciesLayer
Runtime: python3.12
Expand Down

0 comments on commit 728dd51

Please sign in to comment.