-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into refactor/#1429-article-front-merge-featur…
…e-branch
- Loading branch information
Showing
369 changed files
with
6,963 additions
and
4,480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
files: | ||
"/tmp/make_filebeat_yml.sh": | ||
mode: "000755" | ||
content: | | ||
#!/bin/bash | ||
PASSWORD=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PASSWORD) | ||
HOST=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_HOST) | ||
PORT=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PORT) | ||
USER=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_USER) | ||
cat > /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml <<EOF | ||
filebeat.inputs: | ||
- type: log | ||
enabled: true | ||
paths: | ||
- /var/app/current/logs/info/info.log | ||
- /var/app/current/logs/error/error.log | ||
- /var/app/current/logs/warn/*.log | ||
fields: | ||
log_type: legacy-log | ||
- type: log | ||
enabled: true | ||
paths: | ||
- /var/log/nginx/access.log | ||
fields: | ||
log_type: access-log | ||
|
||
output.elasticsearch: | ||
hosts: ["$HOST:$PORT"] | ||
username: "$USER" | ||
password: "$PASSWORD" | ||
indices: | ||
- index: "filebeat-%{[agent.version]}-access-log" | ||
when.equals: | ||
fields.log_type: "access-log" | ||
- index: "filebeat-%{[agent.version]}-legacy-log" | ||
when.equals: | ||
fields.log_type: "legacy-log" | ||
EOF | ||
|
||
commands: | ||
01_install_filebeat: | ||
command: | | ||
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.14.1-linux-x86_64.tar.gz | ||
tar xzvf filebeat-7.14.1-linux-x86_64.tar.gz | ||
02_run_make_filebeat_yml_script: | ||
command: "bash /tmp/make_filebeat_yml.sh" | ||
03_run_filebeat_yml: | ||
command: "nohup /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat -e &" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
backend/src/acceptanceTest/java/wooteco/prolog/fixtures/ArticleFixture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package wooteco.prolog.fixtures; | ||
|
||
import wooteco.prolog.article.ui.ArticleRequest; | ||
|
||
public class ArticleFixture { | ||
public static final ArticleRequest ARTICLE_REQUEST1 = new ArticleRequest("첫 아티클 제목","첫 아티클 주소"); | ||
public static final ArticleRequest ARTICLE_REQUEST2 = new ArticleRequest("두번째 아티클 제목","두번째 아티클 주소"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.