diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..876c51a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM nginx + +# root 에 app 폴더를 생성 +RUN mkdir /app + +# work dir 고정 +WORKDIR /app + +# work dir 에 build 폴더 생성 /app/build +RUN mkdir ./build + +# host pc의 현재경로의 build 폴더를 workdir 의 build 폴더로 복사 +ADD ./build ./build + +# nginx 의 default.conf backup +RUN mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.backup + +# host pc 의 nginx.conf 를 아래 경로에 복사 +COPY ./nginx.conf /etc/nginx/conf.d + +# 80 포트 오픈 +EXPOSE 80 + +# container 실행 시 nginx 시작함 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..58447cd --- /dev/null +++ b/nginx.conf @@ -0,0 +1,10 @@ +#nginx.config + +server { + listen 80; + location / { + root /app/build; + index index.html; + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file diff --git a/src/views/biz/board/ModifyBoardForm.jsx b/src/views/biz/board/ModifyBoardForm.jsx index b1141a4..68db30b 100644 --- a/src/views/biz/board/ModifyBoardForm.jsx +++ b/src/views/biz/board/ModifyBoardForm.jsx @@ -15,8 +15,6 @@ import PropTypes from 'prop-types'; const ModifyBoardForm = (props) => { // eslint-disable-next-line react/prop-types const { setOpen, handleModalSave, rowData = {}, owner = false, handleNewBoard } = props; - console.log(`~~~~~~${owner}`); - const alert = useAlert(); const quillRef = useRef(); const [subject, setSubject] = useState(rowData.ciTitle); const [contents, setContents] = useState(rowData.ciContents); diff --git a/src/views/biz/board/NewBoardForm.jsx b/src/views/biz/board/NewBoardForm.jsx index 1f78f48..3d05b22 100644 --- a/src/views/biz/board/NewBoardForm.jsx +++ b/src/views/biz/board/NewBoardForm.jsx @@ -17,7 +17,6 @@ import PropTypes from 'prop-types'; const BoardForm = (props) => { // eslint-disable-next-line react/prop-types const { setOpen, handleModalSave, rowData = {} } = props; - const alert = useAlert(); const quillRef = useRef(); const [subject, setSubject] = useState(''); const [contents, setContents] = useState(''); diff --git a/src/views/biz/judge/JudgeDataModifyForm.jsx b/src/views/biz/judge/JudgeDataModifyForm.jsx index 98502fc..18e0123 100644 --- a/src/views/biz/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/judge/JudgeDataModifyForm.jsx @@ -14,7 +14,7 @@ import FileReadInputForm from '../../cmm/file-ctl/FileReadInputForm'; // const toDate = new Date(); -function FileReadInputForms(props) { +function FileReadInputForms() { return null; } @@ -77,7 +77,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav formData.append('contadFiles', v); }); console.log(picads, frecads, contads); - // handleModalSave(formData); + handleModalSave(formData); }; const handleChangeFile = (e) => {