Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 7569058

Browse files
committed
updated
1 parent 471c479 commit 7569058

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111

1212
env:
1313
AWS_REGION: ap-northeast-2
14-
S3_BUCKET: 0717-bucket
14+
S3_BUCKET: TODO
1515
S3_KEY: release/dist.zip
16-
CODEDEPLOY_APP: 0717-cd-app
17-
CODEDEPLOY_GROUP: 0717-cd-dg
16+
CODEDEPLOY_APP: TODO
17+
CODEDEPLOY_GROUP: TODO
1818

1919
steps:
2020
- name: Checkout source

appspec.yaml renamed to appspec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ files:
66
hooks:
77
AfterInstall:
88
- location: scripts/install.sh
9-
timeout: 300
9+
timeout: 30
1010
runas: ubuntu
1111
ApplicationStart:
1212
- location: scripts/start.sh
13-
timeout: 300
13+
timeout: 30
1414
runas: ubuntu

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ app.get('/', (req, res) => {
66
res.send('Hello World!')
77
})
88

9-
app.get('/version', (req, res) => {
9+
app.get('/health', (req, res) => {
1010
res.json({
11+
status: 'OK',
1112
version: '1.0.0',
12-
description: 'AWS CodeDeploy Example Application'
1313
})
1414
})
1515

scripts/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/bin/bash
12
cd /home/ubuntu/app
23
npm install

scripts/start.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1+
#!/bin/bash
12
cd /home/ubuntu/app
2-
3-
pkill -f "node index.js"
4-
nohup npm start > app.log 2>&1 &
3+
nohup node index.js > app.log 2>&1 &

0 commit comments

Comments
 (0)