본문 바로가기

DevOps/Deployment4

golang sqlboiler https://thedevelopercafe.com/articles/sql-in-go-with-sqlboiler-ac8efc4c5cb8 예제 레포 https://github.com/gurleensethi/go-sql-boiler-example SQL in Go with SQLBoiler SQLBoiler is package that introspects your database schema and generates a static ORM client. In this article I am going to give you a taste of SQLBoiler. thedevelopercafe.com Installing SQLBoiler CLI tool # go install github.com/volatil.. 2023. 6. 2.
쉘스크립트 팁 응용 실행할때 STDOUT, STDERR을 무시 java -jar app.jar > /dev/null 2> /dev/null &1 & OR java -jar app.jar &> /dev/null > /dev/null : 표준 입출력(1생략)을 무시 2> /dev/null : 표준 에러를 무시 : 새로쓰기 >> : 이어쓰기 tail tail -f : 있는 파일 팔로잉 tail -F : 없는 파일도 팔로잉 ln ln -s tomcat_log.$(date +"%Y-%m-%d-0").log tomcat.log 날짜 형식으로 심볼릭 .. 2022. 8. 22.
[Nginx + Tomcat] 무중단 배포 구현하기 2 How to doEdit1. nginx 설치https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7sudo yum install epel-release -y sudo yum install nginx -y sudo systemctl start nginx nginx.conf 설정#서브도메인에 prod를 포함하고, 로컬 머신으로 부터 요청이 올경우 중단이 되지 않는 인스턴스로 응답 server { listen 80; server_name ~^prod+.*$ localhost; include /etc/nginx/conf.d/*.inc; # for switch configuration location / { proxy_pas.. 2018. 4. 19.
[Nginx + Tomcat] 무중단 배포 구현하기 개요기존의 1 machine = 1 WAS Instance 구조로소스 패치시 해당 머신을 서비스에 사용하지 못하던 부분을 해소하고자동 배포를 구현하기 위해 고안된 구조입니다. In the before as 1 machine = 1 WAS Instance structure,When patching a source, it is possible to solve a situation where the machine can not be used for a service,It is for structure designed to implement automatic deployment. 그림에서 보이는 바와 같이, 기존의 하나의 머신은 하나의 Nginx와 두개의 Tomcat Instance를 가집니다.Nginx의 Re.. 2018. 3. 20.