작성
·
423
0
react와 nodejs를 heroku에 배포할 때 문제가 생겼습니다.
push는 성공했지만 해당 페이지에 접속하면 에러가 뜹니다.
heroku log --tail을 찍어본 결과 아래와 같은 오류를 확인 할 수 있었습니다.
2022-03-16T12:25:47.734926+00:00 app[web.1]: > node index.js
2022-03-16T12:25:47.734926+00:00 app[web.1]:
2022-03-16T12:25:48.422901+00:00 app[web.1]: us-cdbr-east-05.cleardb.net
2022-03-16T12:25:48.429348+00:00 app[web.1]: /app/node_modules/mkdirp/index.js:91
2022-03-16T12:25:48.429350+00:00 app[web.1]: throw err0;
2022-03-16T12:25:48.429351+00:00 app[web.1]: ^
2022-03-16T12:25:48.429352+00:00 app[web.1]:
2022-03-16T12:25:48.429353+00:00 app[web.1]: Error: EROFS: read-only file system, mkdir '/client'
2022-03-16T12:25:48.429353+00:00 app[web.1]: at Object.mkdirSync (node:fs:1336:3)
2022-03-16T12:25:48.429354+00:00 app[web.1]: at sync (/app/node_modules/mkdirp/index.js:72:13)
2022-03-16T12:25:48.429354+00:00 app[web.1]: at sync (/app/node_modules/mkdirp/index.js:78:24)
2022-03-16T12:25:48.429355+00:00 app[web.1]: at Function.sync (/app/node_modules/mkdirp/index.js:78:24)
2022-03-16T12:25:48.429356+00:00 app[web.1]: at new DiskStorage (/app/node_modules/multer/storage/disk.js:21:12)
2022-03-16T12:25:48.429376+00:00 app[web.1]: at Function.module.exports [as diskStorage] (/app/node_modules/multer/storage/disk.js:65:10)
2022-03-16T12:25:48.429376+00:00 app[web.1]: at Object.<anonymous> (/app/index.js:57:24)
2022-03-16T12:25:48.429377+00:00 app[web.1]: at Module._compile (node:internal/modules/cjs/loader:1103:14)
2022-03-16T12:25:48.429377+00:00 app[web.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
2022-03-16T12:25:48.429378+00:00 app[web.1]: at Module.load (node:internal/modules/cjs/loader:981:32) {
2022-03-16T12:25:48.429378+00:00 app[web.1]: errno: -30,
2022-03-16T12:25:48.429378+00:00 app[web.1]: syscall: 'mkdir',
2022-03-16T12:25:48.429378+00:00 app[web.1]: code: 'EROFS',
2022-03-16T12:25:48.429379+00:00 app[web.1]: path: '/client'
2022-03-16T12:25:48.429379+00:00 app[web.1]: }
2022-03-16T12:25:48.629426+00:00 heroku[web.1]: Process exited with status 1
2022-03-16T12:25:48.702790+00:00 heroku[web.1]: State changed from starting to crashed
그런데 무엇이 문제인지 모르겠습니다 도움 부탁드립니다.
답변