일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- 컴퓨터과학총론
- 자바
- javascript
- error
- android
- unity
- 개발
- java
- NGINX
- it
- H2O
- php
- C
- MySQL
- C lanuage
- 구글
- 프래그먼트
- server
- 안드로이드
- Portfolio
- 한글
- centOS7
- ubuntu
- mariadb
- 해석
- caddy
- techEmpower
- 개발자
- kakao
- 번역
- Today
- Total
목록Server/node.js (20)
개발모음집
User.increment({point: 50}, { where: { id: 1 } }) 출처 : https://github.com/sequelize/sequelize/issues/7268
$ create database PORTFOLIO default character set utf8; $ grant select, insert, update,delete on PORTFOLIO.* to 'void'@'%'; $ FLUSH PRIVILEGES $ show grants for void@'%'; Sequelize로 mysql에 접근하려고 했다. > 발생한 에러 Unhandled rejection SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client > 해결법 $ ALTER USER root IDENTIFIED WITH mys..
Error: Include unexpected. Element has to be either a Model, an Association or an object 에러가 발생했다. 에러를 찾아보니 sequelize difine할 때, defaultScope: { where: { active: true } } 를 같이 써쭤야한다고 한다. 출처 : https://stackoverflow.com/questions/55896380/sequelize-js-include-unexpected-element-has-to-be-either-a-model-an-associati Sequelize.js: Include unexpected. Element has to be either a Model, an Association ..
$ wget https://dl.eff.org/certbot-auto $ chmod a+x certbot-auto $ ./certbot-auto certonly --standalone -d 도메인 주소 (도메인주소는 http:// 를 제거해야한다. => deade.cf (o), http://deade.cf(x) 질문에 맞춰 대답해주고 도메인등록을 해주면 된다. Congratulations! 라는 안내가 나오면 도메인 발급은 받은 것! 코드 // 자동 설치를 위한 모듈 greenlock-express # npm install greenlock-express // http로 접근했을 때 https로 리다이렉트하기 위한 모듈 # npm i redirect-https // env.production으로 바꾸기위..