Lessons learned from deploying my first full-stack web application
Lessons learned from deploying my first full-stack web application
AWS와 Ubuntu로 nginx reverse-proxy와 pm2로 nodejs 무중단 서비스 만들기: https://velog.io/@pinot/AWS-Ubuntu로-nginx-reverse-proxy-설정하기
pm2 자동실행 : https://yoon.site/booting시에-node서버가-자동으로-실행되도록-하기/
cloudFront로 S3배포: https://galid1.tistory.com/392
AWS S3를 이용한 static website hosting에서 Custom Domain과 HTTPS(SSL) 사용하기: https://walkinpcm.blogspot.com/2017/06/aws-aws-s3-static-website-hosting.html
AWS S3를 Origin으로 설정한 CloudFront의 컨텐츠 갱신: https://walkinpcm.blogspot.com/2017/06/aws-aws-s3-origin-cloudfront.html
파일 무효화 경로 : https://docs.aws.amazon.com/ko_kr/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects-paths
CloudFront & S3 배포 완전판!! : https://blog.dramancompany.com/2019/09/aws로-서버-없이-웹-서비스-운영하기-1/
$ npx sequelize-cli db:migrate --env production
DB접근방법
secret=$(aws secretsmanager get-secret-value --secret-id prod/KoreanSurvey/Aurora-Mysql-User1 | jq .SecretString | jq fromjson)
user=$(echo $secret | jq -r .username)
password=$(echo $secret | jq -r .password)
endpoint=$(echo $secret | jq -r .host)
port=$(echo $secret | jq -r .port)
mysql -h $endpoint -u $user -P $port -p$password