Angular Quick Start 파일을 S3에 HTML파일 업로드 후
제대로 로드가 안될 시
src/index.html 파일 내부에
<base href="/">
태그가 있으면 삭제.
초기 내용에는 필요 없는 태그.
그래도 로드가 제대로 안될 시,
S3버킷 정책을 설정해줄 필요가 있음
임의의 사용자가 버킷을 읽을 수 있도록 하는 정책
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-app2/*"
}
]
}
2017년 11월 22일 수요일
2017년 9월 30일 토요일
ansible Install 및 초기 작성방법
ansible은 package.json을 읽어들여 안에 지정된 패키지를 node_modules로 설치해줌
1. EC2에 설치하기(버전별 설치하기)
1. EC2에 설치하기(버전별 설치하기)
sudo pip install ansible\==2.1.1
sudo pip uninstall ansible
2. ansible 초기 작성방법
https://www.slideshare.net/deview/1a7ansible
36page 참조
- name: Install node_modules
hosts: localhost
sudo: yes
tasks:
- name: setup node_modules
npm:
global: no
path: ./toh-pt6/
path는 package.json파일이 있는 장소를 지정
EC2에 nodejs 설치하기
・nodes & npm Install on EC2
실행1: curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
실행2: sudo yum -y install nodejs
피드 구독하기:
글
(
Atom
)