Skip to content

Commit

Permalink
Add detail guide
Browse files Browse the repository at this point in the history
  • Loading branch information
voyagerwoo committed Jun 16, 2018
1 parent 683f1c9 commit eb00fbc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Container/2_ECS/Deploy_EC2.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type - t2.micro 인스턴스를 하
![](./images/ec2-keypair.png)

### ssh 접속 및 배포환경 구축
`petclinc ec2` > terminal

1. `petclinc ec2` 인스턴스의 java 버전을 8로 업그레이드 한다. (관련 링크 : http://jojoldu.tistory.com/261)
```bash
sudo yum install -y java-1.8.0-openjdk-devel.x86_64
Expand All @@ -27,7 +29,7 @@ Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type - t2.micro 인스턴스를 하
```

### 배포

`petclinc ec2` > terminal
```bash
git clone https://github.com/{your-github-name}/petclinic-rest
cd petclinic-rest
Expand Down Expand Up @@ -79,9 +81,9 @@ tail -f nohup.out

### 코드 수정

1. 배포스크립트 수정
1. 배포스크립트 수정

petclinic-front > package.json
`cloud9` > petclinic-front > package.json

package.json에 deploy:s3 스크립트에서 bucket 명을 prerequisites에서 만든 자신의 버켓명으로 수정한다.
```json
Expand All @@ -92,7 +94,7 @@ tail -f nohup.out

1. api host 수정

petclinic-front > src/services/restService.js
`cloud9` > petclinic-front > src/services/restService.js

restService.js 에서 서비스 호스트를 배포된 호스트로 변경한다.
```js
Expand All @@ -101,6 +103,7 @@ tail -f nohup.out
### 배포

1. 배포 스크립트 실행
`cloud9` > terminal
```bash
cd /home/ec2-user/environment/petclinic-front/
npm install
Expand Down

0 comments on commit eb00fbc

Please sign in to comment.