묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결아이폰 앱 개발 입문 2편
class 내 radius를 var로 선언하는 이유가 있나요?
여기서 let 으로 선언해도 오류가 안나길래 여쭤봅니다! 제 생각에는 class 내에서 radius가 여러번 바뀌는게 아니라 한번 호출할 때 radius 값을 딱 한번 넣어주고 그 뒤로 초기화되지 않고 값이 도출되어서 그런가 싶은데 제 생각이 맞나요? 그렇다면 var이나 let 둘중 아무거나 써도 되는건가요? 아니라면 왜 그런지 알려주시면 감사합니다!!
-
미해결탄탄한 백엔드 NestJS, 기초부터 심화까지
실행오류
db연결은 잘되는데 쿼리 날리면 아래 에러가 뜨네요. express-session 설치해봤는데 동일 메세지가 나옵니다. ERROR [ExceptionsHandler] Login sessions require session support. Did you forget to use `express-session` middleware? Error: Login sessions require session support. Did you forget to use `express-session` middleware? at SessionStrategy.authenticate (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/passport/lib/strategies/session.js:46:41) at attempt (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/passport/lib/middleware/authenticate.js:369:16) at authenticate (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/passport/lib/middleware/authenticate.js:370:7) at Layer.handle [as handle_request] (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/express/lib/router/index.js:317:13) at /Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/express/lib/router/index.js:335:12) at next (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/express/lib/router/index.js:275:10) at initialize (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/passport/lib/middleware/initialize.js:89:5) at Layer.handle [as handle_request] (/Users/jinsyu/dev/teaching-typeorm-in-the-nest-main/node_modules/express/lib/router/layer.js:95:5)
-
미해결처음 배우는 리액트 네이티브
안드로이드 변수 오류
1. github 주소: https://github.com/Gophycal/Inflearn 2. 오류사항 ReferenceError: Can't find variable: IDBIndex - ... 9 more stack frames from framework internals Invariant Violation: "main" has not been registered. This can happen if: * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project. * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called. at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError 3. package.json { "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { "@react-native-community/masked-view": "^0.1.11", "@react-navigation/bottom-tabs": "^6.0.9", "@react-navigation/native": "^6.0.6", "@react-navigation/stack": "^6.0.11", "expo": "^43.0.0", "expo-image-picker": "~11.0.3", "expo-status-bar": "~1.1.0", "firebase": "^9.6.1", "moment": "^2.29.1", "prop-types": "^15.7.2", "react": "17.0.1", "react-dom": "17.0.1", "react-native": "0.64.3", "react-native-gesture-handler": "~1.10.2", "react-native-gifted-chat": "^0.16.3", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-reanimated": "~2.2.0", "react-native-safe-area-context": "3.3.2", "react-native-screens": "~3.8.0", "react-native-web": "0.17.1", "styled-components": "^5.3.3" }, "devDependencies": { "@babel/core": "^7.12.9" }, "private": true } 4. 문제 발생 지점: 안드로이드 애뮬레이터(Pixel_4) 5. 오류 내용 프로필 화면을 만들던 중 일어난 오류입니다. 구체적으로 navigations의 index, 그리고 firebase.js, screens의 Profile을 수정하여, 'Profile' 스크린에서 사용자의 정보에 따라 이름, 이메일, 사진 등을 보여주는 기능을 추가하는 중에 일어난 오류입니다. 지금 한 5시간째 찾아보고 있는데, 어떻게 해결하는지 잘 모르겠습니다. 추측으로는 노드 모듈에서 버젼이 안 맞는 게 있는 것 같은데, yarn이라든지, npm이라든지 노드 모듈 다 지우고 다시 install 하거나 add 했는데, 오류가 사라지지 않네요. IOS 애뮬레이터(iPhone 13)에서는 오류가 없는데 이상합니다.
-
해결됨스프링 기반 REST API 개발
WebLinkBuilder .linkTo( .. ) 사용 시, Class<?> 인수 리팩토링 관련 질문입니다 - feat JAVA9+ StackWalker
안녕하세요 강사님. linkTo() 를 호출하는 시점에 컨트롤러 Class<?> 를 자동으로 알아와 적용하고자 한 동기에서 질문이 시작되었습니다. 아래의 Thread .currentStackTrace() 는 Caller 클래스를 알아오는 기막힌 기능이죠. 그런데 과부하가 걸린다는 단점이 있다고 알게되었습니다. Thread.currentThread().getStackTrace()[1].getClass() 그래서 스텍을 층층히 뒤져서 찾지않는 과부하가 개선된 Java9+ StackWalker 를 알게되었습니다. StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE).getCallerClass(); 이것을 아래 코드처럼 WebLinkBuilder .linkTo( ? ) 에 적용하도록 HalModel<T>.of(..) 실행시점으로 옮겼습니다. ( HalModel<T> 은 커스텀 EntityModel-구: Resource<T> 입니다 ) public static <T> HalModel<T> of(T content) { /* Java9+ 이상: getCallerClass() 호출자 @Controller @RestController 클래스를 동적으로 얻어옵니다. */ callerLinkBuilder = linkTo(STACK_WALKER.getCallerClass()); return new HalModel<>(content, Collections.emptyList());} 2가지 질문 입니다 이렇게 적용 하고보니, 2가지 걸리는 문제가 있었습니다.아래는 HalModel 이 적용된 Controller 메서드 예제 입니다. @PostMappingpublic ResponseEntity createEvent(@RequestBody @Valid EventDto eventDto, Errors errors) { HalModel<EventDto> model = HalModel.of(eventDto); return ResponseEntity .created(model.contentUri()) .body(model.addSelfContentLink() .addSelfContentLink("update-event") .addSelfLink("query-events") .add(Link.of("/docs/index.html#resources-events-create", "profile")) );} 과연, 이런 방식이 토이프로젝트 외적으로 사용될 수 있을까? 이 방법은, 운영 시 믿을만 한 코드인가? `of() {...}`메서드가 많아지면, callerLinkBuilder = linkTo(STACK_WALKER.getCallerClass()) 이 코드가 매번 들어가야 하는데, 이것을 메서드 추출하면, HalModel 클래스가 Caller 클래스로 얻어지는데, 리팩토링 할 방법이 없음.: Proxy 적용도 힘들고, of 메서드 마다 박혀 있어야 Controller.class 를 얻어오기때문: 위에서 비효율적인 Thread.currentThread() 를 통해 구현할 수도 있지만, 과부하는 피해야 함. 이런 부분에 대해 조언을 얻을 수 있을까요? 읽어주셔서 감사드립니다!
-
미해결
The idea is to Hire a website designing Company in India
The purpose of selecting a web design company is to create and deliver a high-quality and performing website. It is a highly-technological task. Especially in today's advanced Web Design Technology scenario obtaining, it is more of a cumbersome exercise, as never before. Looking from the perspective of the website owner, it is imperative therefore that they bestow attention and care, in the selection of an outstanding Service Provider, if they want to succeed in Internet Marketing. That said the selection process involves evaluating many website design company, offering their services from all the global countries. The points to be considered in this evaluation process are - Whether the Service Provider company employs expert and experienced professionals? How about the knowledge and skill of their professionals, to cope with present-day advancements in web designing? Whether they have the best credentials from their erstwhile customers? Do they offer consistent and continuous support, even after delivering the website? Finally - what is the total cost involved and how does it compare with global peers? Now here are the right answers for all the above questions. Right at the outset, one can daresay the software engineers of India have achieved international fame and popularity. Any country is willing and ready to take into their Board, these highly capable engineers for the betterment of their organization. Microsoft is one fine example. With this background, the Indian professionals carrying out assorted tasks of web designing, software and applications development, configuration and programming the website, hosting, Search Engine Optimization, and allied website promotion tasks are second to none. There are many Digital Service Providers in India, possessing to their credit vast experience in building multi-various websites, simple or complex, big, medium or small, and serving any Industry or field, you name it. As such, the apprehensions and anxieties of website owners are allayed completely, in this regard. Advanced knowledge in Web Designing Technology: It is quite obvious that any task, if performed repeatedly from day-to-day, automatically becomes second nature. More exposure gained this way in designing enormous varieties of websites pave the way, to improve the knowledge of Web Designing Technology, along with the latest advancements coming out from various quarters. Whenever a new technique or a new idea is framed in a website designing Company in India, based on Customer Behavior, the Indian professionals are the first to master that technique and apply the same in the website they are presently designing. With these advanced technological skills, it becomes easier for the professionals to face any challenge or innovations coming up, and build a website that stands apart, head and shoulder above other websites. The website owner reaps enormous benefits from this. Best credentials from erstwhile Customers: This point can be got clarified easily, by visiting the website of the selected Service Provider. Anyone can see there, the happy customers got enormously benefited by the professionalism and innovative methods of website designing, by this website design company in India, showering unlimited praises. Consistent and Continuous Technical Support: The specialty of any Service Provider must be their best Customer Service. From the moment a client approaches them for creating a website, the company allots an exclusive official as Liaison Officer. Till the website is created and delivered, and even after the website starts functioning online, the relationship established with the client right at the very first introduction stage is maintained amicably. This official will work as a bridge between the client and the company, and the client can get in touch with this official, for anything and everything they want to get done by the company. Cheapest Cost: The website-related Services, from web designing to developing, programming, software, and applications development, and web hosting must be provided at the same place. In addition, the next stage of promoting and popularizing the site must also be undertaken, by the expert professionals of the selected website design company in India. Considering the high quality of the website created, and making all the Services available in one place, the total cost becomes incredibly low. Do we need to say more?
-
미해결배달앱 클론코딩 [with React Native]
실제기기에서 테스트 과정에서
안녕하세요, 강좌의 내용대로 학습하고 테스트하는 과정에서 문제가 있어 질문 남깁니다. 가상 기기에서는 서버에 토큰도 잘 나오고, 회원가입 및 이후 단계 모두 정상적으로 작동하나 실제 기기(LG 스타일러스, android 7)를 연결하고, ip 변경 및 실제 연결 확인(adb devices)도 정상이고, metro에서는 기기의 토큰도 잘 나오는 것을 확인했으나, 서버에서는 가상기기처럼 기기의 토큰 정보가 나오지 않아 회원가입도 안되는 걸로 확인됩니다. 어떤 부분을 확인해야 이 문제를 해결할 수 있을지 도움 받고 싶습니다 감사합니다.
-
미해결인터랙티브 웹 개발 제대로 시작하기
오늘부터 인터렉티브 공부 시작합니다
평소에도 인터랙티브 강의에 관심ㅇ 있었는데 마침 세일하길래 몽땅 사버렸습니다 오늘부터 천천히 공부를 시작해보겠습니다~~~
-
미해결아이폰 앱 개발 입문 1편
오류가 나는 이유를 잘 모르겠습니다
그냥 전에 프로젝트 바로 빌드한것 뿐인데 오류가 뜨네요 ㅠㅠ 이유를 모르겠습니다!
-
해결됨[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
이벤트루프 알아보기 8분 20초에 대해 질문드립니다
안녕하세요 강의 8분 20초에서 자바스크립트 강좌에서는 호출 스택, 백그라운드, 태스크 큐와 관련해서 소스코드의 실행순서를 분석하는 훈련을 시켜주신다고 해주셔서 아래 링크의 강좌에서 훈련을 시켜주시는지 질문드리고 싶습니다 [리뉴얼] 렛츠기릿 자바스크립트 - 인프런 | 학습 페이지 (inflearn.com) 그리고 이 강좌에서 훈련시켜주시는 게 맞다면 몇 강에서 이런 훈련을 시켜주시는지도 질문드리고 싶습니다
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
실행 에러..
에러 발생 이유를 모르겠습니다.. 해결방안을 알 수 있을까요?
-
해결됨스프링 핵심 원리 - 기본편
스프링 빈이 스프링 코드에 의존하지 않게 되면 얻는 이점
안녕하세요 강의 너무 잘 듣고 있습니다! 처음으로 질문을 달아봅니다 ㅎㅎ!! 직전 강의와 현재 강의에서 "스프링 빈이 스프링 코드에 의존한다" 라는 말이 많이들렸습니다. 그렇다면 스프링 빈이 스프링 코드에 의존하게 된다면 발생되는 문제가 어떤것이 있는지 궁금합니다! 감사합니다!
-
미해결파이썬 증권 데이터 수집과 분석으로 신호와 소음 찾기
requests.get()과 driver.get()의 차이가 궁금합니다.
웹 크롤링을 할 때, 두 가지 경우 모두 작동이 되는데, 그렇다면, requests.get()과 driver.get()의 차이가 궁금합니다. response = requests.get(bs_url ) response = driver.get(bs_url)]
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
docker로 db를 사용중에 만든 테이블이나 데이터들은 백업하는 방법이 따로 있을까요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 제가 찾아본 방법으로는 docker 환경에서 db를 백업하고 만들어진 sql파일을 다른환경에서 컨테이너를 실행할때 같이 실행해주는 방법은 알고 있는데 docker hub에서 자체적으로 push 할 수 있을지 궁금합니다.
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
유니티 강좌 너무 재밌읍니다...
대학교 조별 과제로 C++ 소켓 프로그래밍으로 회원가입 가능한, 카카오톡 형태의 채팅 프로그램 만든적 있는데, 이번 파트를 따라 공부하면서 정말 아쉬운 점이 많았다는 걸 느낍니다. 그때 조별과제가 늘 그렇듯 도와주는 사람 없이 서버랑 클라를 저 혼자 만들었는데, 이걸 봤으면 좀 더 멋있게 만들지 않았을까 싶네요. 스파게티 코드라고 하나요? 나름 열심히 했지만 제 끔찍한 결과물을 생각하면 눈물만 납니다. 이걸 어떻게 해야 할지 어디 물어볼 사람도 없고.. 힘들었는데 그 답이 여기에 있었네요. 보니까 다음 파트에 DB 강좌도 있던데, 채팅 프로그램에서 회원 관리용으로 mysql 사용한 경험이 도움이 될까요. 그리고 앞으로 공부에 꼭 필요한 강좌일까요? 가난한 3학년 대학생이다 보니 모든 강좌를 한 번에 구매할 여력이 없습니다. 그래서 당장 필요하다 싶은 것만 구매하고 있는데... 강좌 듣다보니까 하나도 빠지면 안 될 것 같다는 생각이 듭니다. 원래는 C++ 다렉 강좌에서 머리 깨지고(너무 어려워서 꼭 다렉을 배워야 하나 싶은 고민을 좀 했습니다. 게다가 겨우 돈 모아서 산 강좌인데 제대로 이해도 못해서..), 게임 틀 만드는법부터 배우자는 느낌으로 유니티 강좌 달리고 있는데 너무 재밌네요... 개인적으로 4학년 올라가기 전까지 언리얼 강좌도 듣고 싶은데 가능할까요? 졸업작품으로 언리얼 강좌 보면서 그럴듯한 게임을 만들어보고 싶습니다...
-
해결됨파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
django 관련 질문
안녕하세요! 이제 강의를 들을려고 합니다. 먼저 저의 상황은 이와 같습니다. Django를 통해 전체적인 웹개발에 대한 흐름을 공부해볼려고 시작합니다. 그 후, backend web 개발자나 Devops나 Data 분야로 가는 것을 결정해볼라고 합니다. Django에 대해 그냥 유튜브 검색을 해보니 [Django를 추천하지 않는 이유](https://www.youtube.com/watch?v=ObelJbEt8-Y) 를 보게 되었습니다. 이 영상에서 봤을 때, 웹 개발을 공부하고 싶으면 Django를 하지 말고 Spring을 해야 한다는 의견이었습니다. Django는 너무 dB에 집중되어 있다고 했습니다. 3년 전 영상이라 지금은 어떨지 모르겠습니다. java spring 시장이 한국에서 매우 거대하여 python Django가 상대적으로 적어도, 절대적으로는 적은 수는 아니라고 생각합니다. (그리고 python은 너무너무 가용성이 좋은 언어라 개인적으로 좋아하는 언어입니다 : ) ) 이에 대해 어떻게 생각하시는 지 궁금합니다.
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
강의 실습 중 발생한 장애에 관해 궁금한 점이 있습니다.
서버정지시 fail : https://www.inflearn.com/questions/356957 build.gradle 설정 : https://www.inflearn.com/questions/176890 강의 정말 유익하게 잘보고 있습니다! 강의 시청 중 장애를 만나 이를 해결하려다 여러 문제가 복합적으로 터졌고 답변과 구글링을 통해 어찌저찌 해결은 했으나 제가 맞게 해결한건지 아니면 임시방편으로 때운건지 알고싶어서 질문드립니다. 현재 사용중인 intellij는 edu버전(ce와 거의 비슷하다고 알고있습니다)입니다. 장애가 발생한 실습은 mvc패턴 적용편의 MvcMemberFormServlet과 new-form 작성이었는데요. 이전 강의들에선 기본적으로 빌드 툴을 그래들에서 인텔리제이로 바꿔서 진행하는 것이 낫다고 하셔서 그대로 진행했습니다. 하지만 이번강의에선 무료버전을 사용중이면 빌드툴을 그래들로 실행하라고 매뉴얼에 적혀있어 바꾼 뒤 진행했습니다. 그런데 new-form 작성이 끝나고 서버를 재부팅하자 Execution failed for task ':ServletApplication.main()'.> Process 'command 'C:/Program Files/Java/jdk-11.0.14/bin/java.exe'' finished with non-zero exit value 1가 발생하였고 혹시나 싶어서 빌드툴을 인텔리제이로 바꾼 뒤 실행하자 ApplicationContext 관련 장애가 발생하여 구글링을 하기 시작했고 위에 작성한 답변들을 바탕으로 이렇게 생각하였습니다. 1. ApplicationContext가 스프링 컨테이너와 관련이 있다고 배웠었고 톰캣은 웹 서버와 스프링 컨테이너를 내장하고 있기때문에 톰캣이 정상 작동하지 않아서 ApplicationContext가 발생했고 이는 dependency문제때문인가? 2. 구글링해서 알아보니 JSP를 jar에서 실행하지 못하는건 jar와 war의 디렉터리 구조가 다르고 WAR의 WEB-INF 디렉터리가 tomcat의 default기 때문이라고 되어있어 혹시 web-inf 바깥의 jsp파일이 존재하기 때문에 그러는 것일까? 그래서 1. build.gradle의 providedRuntime 삭제 2. 빌드툴을 인텔리제이로 변경 3. gradle JVM 경로 재설정 이 과정을 진행했는데도 문제가 해결되지않아 계속 살펴보았고 결국 WEB-INF밖에 위치한 모든 JSP파일을 지운 후에야 서버가 정상적으로 켜졌습니다. 결과적으로 보면 jsp파일의 경로가 잘못되어 생긴 문제 같은데 너무 글이 길어진 것 같아 죄송하지만 해결하는 과정에서 생긴 exception들이 너무 많아 혼란스러워 이렇게 질문드립니다. 1. jsp 실습을 위해 WAR를 사용하신 것 같은데 WAR는 별도의 설정이 없다면 외부 톰캣을 라이브러리로 받아 실행해야하는데 이 과정에서 인테리제이 ce버전은 providedRuntime 코드를 인식하지 못하여 톰캣이 실행되지 않아 이 코드를 지워 jar같이 내장 톰캣을 사용하도록 바꾼 것이 맞나요? 2. 알아본바로 실행가능한 .jar는 내장 톰캣이 web-inf내에 위치하지 않은 jsp는 사전정의된 구조를 따르지 않아 실행할 수 없다고 되어있던데 dependency에서 providedRuntime 코드를 지워 내장 톰캣을 사용토록 한 것이 맞다면 jar와 같은 방식으로 빌드되어 web-inf 바깥의 jsp를 인식하지 못한 것인가요? 3. 빌드툴을 인텔리제이에서 그래들로 바꾸면 자바 플러그인 등 더 많은 기능을 포함하여 빌드하기때문에 Execution failed for task ':ServletApplication.main()가 발생하는 것 같은데 이 생각이 잘못된건가요? 너무 질문글이 길어 보시느라 소중한 시간을 뺏은 것 같아 너무 죄송합니다 ㅠㅠ 그래도 글에서 어느게 맞고 어느게 틀린건지 조금이라도 답변해주시면 정말 감사할거같아요.
-
미해결스프링 핵심 원리 - 기본편
안녕하세요. discount 2번 사용에 관해 질문드립니다.
안녕하세요! 일전에, ㅡㅡ 고객쪽에서 MemberRepository m = new MemoryMemberRepository(); 라는 예제에서는 Memory에서 오류가 발생했을 때, JdbcMemberRepository();를 사용하도록 코드를 짜고 싶습니다. 그렇다면, client쪽에서 try{ MemberRepository m = new MemoryMemberRepository(); } catch() { MemberRepository m = new JdbcMemberRepository(); } ㅡㅡ 위와 같은 질문을 드렸고, List, Map강의를 보라하셔서 봤습니다.이번 강의에 나온 discount코드를 가지고 추가적인 기획과 함께 코드를 짜보았습니다. 1. discountCode는 "rate"가 우선순위 1위이고, price가 0이면 오류를 반환하다. 2. 1번 오류가 발생했을 때, "fix" discount 로직을 실행한다. public int discount(Member member, int price, String discountCode) { // ... 로직은 강의와 동일} ㅡㅡㅡㅡㅡ discount를 실행하는 구현체는 아래와같습니다. class Something { public doDiscount() { try{ discountService.discount(..., "rate") }catch{ discountService.discount(..., "fix") } .... } } 결론적으로 제가 궁금한건, 같은 추상화로 구현된 로직 중, 첫번째 로직이 실패했을때 두번째 로직을 실행시켜라 라는 상황은 try, catch로 구현하는 것이 맞는지 궁금합니다
-
미해결풀스택을 위한 탄탄한 프런트엔드 부트캠프 (HTML, CSS, 바닐라 자바스크립트 + ES6) [풀스택 Part2]
한 번 쭉 영상을 시청하고 나서 이해하고 난다음에
정리하는게 낫겠죠? 보면서 계속 정리하는거보다? 계속 정리하면서 하면 흐름도 끊기고 진도가 안나가는 느낌이라서요..
-
미해결초보를 위한 도커 안내서
docker-compose up 할 때 환경변수 타입 에러 문의
안녕하세요. 강의 잘 듣고 있습니다. docker-compose up 실습을 위하여 강의내용처럼 `.yml` 파일에 코드를 작성하고 `docker-compose up` 명령어를 입력했는데 `.yml` 파일 안에 문자열(String) 타입이 아닌 `WORDPRESS_DB_HOST: db:3306`이 포함되어 있다고 invalid 에러가 뜹니다. 강의내용대로 한 것 같은데 뭐가 문제일까요... docker-compose.yml 소스 코드 version: '2' services: db: image: mysql:5.7 volumes: - ./mysql:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: wordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: image: wordpress:latest volumes: - ./wp:/var/www/html ports: - "8000:80" restart: always environment: - WORDPRESS_DB_HOST: db:3306 - WORDPRESS_DB_PASSWORD: wordpress 에러 메시지 ❯ docker-compose up ─╯ ERROR: The Compose file './docker-compose.yml' is invalid because: services.wordpress.environment contains {"WORDPRESS_DB_HOST": "db:3306"}, which is an invalid type, it should be a string
-
미해결파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트
class Meta에 대해 질문입니다.
10:54의 내용을 10:57에 심플하게 바꿀 수 있다고 해주셨는데요 클래스 내부에 클래스가 들어잇는 문법을 처음봐서 찾아보려는데 키워드를 잘모르겠네요 혹시 '메타클래스'라는게 맞을까요? 이렇게 저렇게 찾아봐도 메타클래스에 관한 부분인 것 같긴한데, 또 찾는 자료들에서는 설명해주신 방식으로 메타클래스를 사용하는 걸 못봐가지구요