Skip to content

Commit

Permalink
Test sentry active job
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Sep 8, 2024
1 parent c1b75a7 commit 0fd0284
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,20 @@ ACCOUNT=$(aws sts get-caller-identity | jq -r .Account)
cdk bootstrap aws://$ACCOUNT/$REGION
```

If ECR complains about access
```bash
ACCOUNT=$(AWS_PROFILE=nabu-stage aws sts get-caller-identity | jq -r .Account)
AWS_PROFILE=nabu-stage aws ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin $ACCOUNT.dkr.ecr.ap-southeast-2.amazonaws.com
```


## Deployment

Use CDK to deploy new code via docker as well as any infrastructure changes

``` bash
cd cdk
cdk --profile nabu-stage diff nabu-appstack-stage
cdk --profile nabu-stage deploy nabu-appstack-stage
bin/release stage
bin/release prod
```

If necessary:
Expand Down
1 change: 1 addition & 0 deletions app/jobs/catalog_metadata_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class CatalogMetadataJob < ApplicationJob
queue_as :default

def perform(data, is_item)
throw 'Moo'
local_data = { data:, is_item:, admin_rocrate: true }

rocrate = Api::V1::OniController.render :object_meta, assigns: local_data
Expand Down

0 comments on commit 0fd0284

Please sign in to comment.