Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 901 Bytes

README.md

File metadata and controls

45 lines (34 loc) · 901 Bytes

GMT nginx log monitoring

Requirements

  • Nodejs 8.10.x

Clone project and run test.

$ git clone https://git_url_clone <project_dir>
$ cd <project_dir>
$ npm install
$ npm run test

Copy sh/env.example.sh to sh/env.sh.

$ cd <project_dir>
$ cp env.example.sh env.sh

Edit file env.sh by yourself and run command below to initialization environment variable.

Name Description
NGINX_LOG_FILE Path to nginx log file
MYSQL_LOG_FILE Path to mysql log file
ENV env name. ex: stg, pro, dev,...
MANAGERS Chatwork IDs. ex: [To:xxx]
CW_ROOM_ID Chatwork room ID
CW_API_URL Chatwork API URL
CW_BOT_TOKEN Chatwork API KEY
$ cd <project_dir>
$ source sh/env.sh

Run project

$ cd <project_dir>
$ node src/index.js