Settings - ReginaGimazova/log_analyzer_api GitHub Wiki
If EC2 public DNS changed
- Open EC2 instance in terminal
- Update nginx setting
cd /etc/nginx/sites_available
sudo nano default
Change server_name variable value
- 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
- Open EC2 instance in terminal
- Switch to target directory:
cd /home/ububtu/log_analyzer
- Put query_log.sql file
- 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:
- Open EC2 instance in terminal
- 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
- Change variables and save (variables description you can read in README)