AWS EC2 소스코드 불러오기 및 설정

박동건·2020년 6월 16일
0

TIL(2020)

목록 보기
40/49

Today I Learn...

// 리눅스 최신 버전으로 업데이트
apt-get update

// node에 필요한 것 설치
apt-get install -y build-essential

// 설치하고자 하는 노드 패키지를 먼저 받고 노드 설치
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -- 
apt-get install -y nodejs

// 백엔드 서버
apt-get install -y mysql-server

// git에 올라가지 않은 파일은 직접 생성(.env 등..)
apt-get install vim
ls -a (숨겨진 파일 모두 보기)
vim .env (.env파일 생성하기)
cat .env (.env파일 열어보기

빌드과정에서 이상한 에러 발생....

Module parse failed: 'import' and 'export' may only appear at the top level (5:6)
You may need an appropriate loader to handle this file type.
|     // 加载script标签会阻塞js执行,antd部分组件(如表格)无法在一轮循环内完成完整的渲染,故延时
|     setTimeout(function(){
>       import(/* webpackChunkName: "antd-icons" */'!!./dist.js').then(function(allIcons) { 
|         AutoReloadIcon.load(allIcons); 
|       });

> Build error occurred
Error: > Build failed because of webpack errors
    at Object.build [as default] (/home/ubuntu/Nodebird/front/node_modules/next/dist/build/index.js:192:15)
profile
박레고의 개발 블로그

0개의 댓글