Settings - ReginaGimazova/log_analyzer_api GitHub Wiki

If EC2 public DNS changed

  1. Open EC2 instance in terminal
  2. Update nginx setting

cd /etc/nginx/sites_available

sudo nano default

Change server_name variable value

  1. Also you should update REACT_APP_API_URL variable in Heroku
  • Click on Reveal Config Vars
  • Change REACT_APP_API_URL

Query log file placement

  1. Open EC2 instance in terminal
  2. Switch to target directory:

cd /home/ububtu/log_analyzer

  1. Put query_log.sql file
  2. Write pass to this file in /home/ububtu/log_analyzer/log_analyzer_api/ecosystem.config.js file, LOG_PATH variable:

cd /home/ububtu/log_analyzer/log_analyzer_api

nano ecosystem.config.js

RDS endpoints, user name, password

For update this environment variables:

  1. Open EC2 instance in terminal
  2. Go to /home/ububtu/log_analyzer/log_analyzer_api directory and open ecosystem.config.js file

cd /home/ububtu/log_analyzer/log_analyzer_api

nano ecosystem.config.js

  1. Change variables and save (variables description you can read in README)