본문 바로가기

DevOps7

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.
[graylog2] 적용 증가된 서버로 인해 분산된 로그를 한눈에 보고자 도입한 GrayLog2여러 후보중 가장 큰 이유는 오픈소스이고, 최근에 업데이트가 활발했기때문에 다양한 환경에 추가할 수 있도록 라이브러리가 존재했다. 현재 구조는 Front Web과 Backend API의 2-Tier 구조인데목표는 둘다 붙이는 것이었지만 일단 중요한 Backend API 서버군에 목표를 두었다. Backend API는 Grails 2.4.3 프레임워크로 구성이 되어있어, graylog2용 Grails Plugin을 어렵지 않게 구할 수 있었다. dependencies in BuildConfig.groovy--------------------------------------runtime 'org.graylog2:gelfj:1.1.13' C.. 2018. 5. 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.