codestates / codestates/Memory-It

[Error Handling] ec2에서 typescript로 pm2 사용하기

Open
#263 0 comments 0 reactions 1 assignee Claimed by @cjhmoves33 View on GitHub
dev-ops Error!
Dominant language
JavaScript
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### 어떤 에러인가요?
+ pm2로 서버를 여는대는 성공했으나 게시글 작성 후 게시글이 불러와지지않음

### 이상한점
+ 게시글 작성 시 pm2로그에는 정상적으로 게시글이 등록 됐다고 찍힘
+ 브라우저 상에서도 오류가 나지않음
+ 새로고침을 해서 전부 새로 불러오는 과정에서도 오류가 나질않음.
+ 게시글 작성시 express static으로 서버폴더에 사진을 저장하고 있는데 여기서 문제가 생기는가 싶긴한데 삭제는 문제없이 됨

-- 추가
pm2를 사용하지않아도 똑같은 문제가 있음.
서버에 이미지가 잘 저장은 되지만 불러올때 문제가 있다고 판단됨.

-- 추가
계속 1월분 다이어리를 조회하고 있었음.
현재 월에 따라 자동으로 기본선택이 바뀌게 설정 했었는데 재대로 적용 된 건지 다시 확인필요함.

-- 아래는 pm2연결에 참고한 레퍼런스 --
[blog: 아주친절하게 설명하고 있음](https://m-falcon.tistory.com/500)
[stack-over-flow](https://stackoverflow.com/questions/59449015/cors-error-when-running-pm2-start-server-watch-but-not-pm2-start-server-n)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.