Showing
1 changed file
with
13 additions
and
9 deletions
1 | - | 1 | +   |
2 | - | ||
3 | - | ||
4 | 2 | ||
5 | - | 3 | +    |
6 | - | ||
7 | - | ||
8 | - | ||
9 | 4 | ||
10 |  | 5 |  |
11 | 6 | ||
... | @@ -82,17 +77,22 @@ Need to write secret | ... | @@ -82,17 +77,22 @@ Need to write secret |
82 | ### Installation | 77 | ### Installation |
83 | 78 | ||
84 | 1. Clone the repository | 79 | 1. Clone the repository |
80 | + | ||
85 | ```shell | 81 | ```shell |
86 | git clone http://khuhub.khu.ac.kr/2018102211/mamuri-bot | 82 | git clone http://khuhub.khu.ac.kr/2018102211/mamuri-bot |
87 | ``` | 83 | ``` |
84 | + | ||
88 | 2. Put your secret files that you create in prerequisite to | 85 | 2. Put your secret files that you create in prerequisite to |
86 | + | ||
89 | ```shell | 87 | ```shell |
90 | mamuri-bot/database/mysql_init/.env | 88 | mamuri-bot/database/mysql_init/.env |
91 | mamuri-bot/joongna/config/.env | 89 | mamuri-bot/joongna/config/.env |
92 | mamuri-bot/ngrok/ngrok.yml | 90 | mamuri-bot/ngrok/ngrok.yml |
93 | mamuri-bot/server/config/.env | 91 | mamuri-bot/server/config/.env |
94 | ``` | 92 | ``` |
93 | + | ||
95 | 3. Executing `deploy.sh` for deployment with docker-compose. This script will `build` all images automatically and `docker-compose up` on your system | 94 | 3. Executing `deploy.sh` for deployment with docker-compose. This script will `build` all images automatically and `docker-compose up` on your system |
95 | + | ||
96 | ```shell | 96 | ```shell |
97 | #!/usr/bin/env bash | 97 | #!/usr/bin/env bash |
98 | 98 | ||
... | @@ -106,12 +106,16 @@ Need to write secret | ... | @@ -106,12 +106,16 @@ Need to write secret |
106 | # docker build -t mamuri-ngrok ./ngrok/ | 106 | # docker build -t mamuri-ngrok ./ngrok/ |
107 | # docker-compose up -d | 107 | # docker-compose up -d |
108 | ``` | 108 | ``` |
109 | -5. Check your ngrok public URL | 109 | + |
110 | +4. Check your ngrok public URL | ||
111 | + | ||
110 | ```shell | 112 | ```shell |
111 | docker logs mamuri-ngrok | 113 | docker logs mamuri-ngrok |
112 | ``` | 114 | ``` |
115 | + | ||
113 |  | 116 |  |
114 | -6. Set your public URL to Line chatbot configuration for webhook | 117 | + |
118 | +5. Set your public URL to Line chatbot configuration for webhook | ||
115 |  | 119 |  |
116 | 120 | ||
117 | ## Contributing | 121 | ## Contributing | ... | ... |
-
Please register or login to post a comment