Skip to content

Commit 5d13436

Browse files
Merge pull request #6 from ForeverYoung1208/test/new-version
fix
2 parents bdf1eb2 + 681cdee commit 5d13436

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ jobs:
7171
"cd /var/www/app",
7272
"aws s3 cp s3://'"$CODE_BUCKET"'/'"$FILE_NAME"' app.zip --region '"$REGION"'",
7373
"unzip -o app.zip",
74+
"sudo -u ec2-user npm ci",
7475
"chown -R ec2-user:ec2-user /var/www/app",
75-
"sudo -u ec2-user /usr/local/bin/docker-compose up -d --build",
76-
"sleep 15",
76+
"sudo -u ec2-user /usr/local/bin/docker-compose up api postgres redis -d --build",
77+
"sleep 30",
7778
"sudo -u ec2-user /usr/local/bin/docker-compose exec -T api npm run migration:run"
7879
]' \
7980
--region "$REGION" \

infra/lib/infra-stack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ export class InfraStack extends cdk.Stack {
426426
'ssm:SendCommand',
427427
'ssm:ListCommandInvocations',
428428
'ssm:ListCommands',
429+
'ssm:GetCommandInvocation',
429430
],
430431
resources: ['*'],
431432
}),

0 commit comments

Comments
 (0)