hewei.it před 5 roky
rodič
revize
aaed581146
3 změnil soubory, kde provedl 11 přidání a 2 odebrání
  1. 3 1
      README.md
  2. 5 0
      getting_started.sh
  3. 3 1
      readme_cn.md

+ 3 - 1
README.md

@@ -32,6 +32,9 @@ but simpler apis and richer protocols.
     - curl
 
 ## Getting Started
+```
+./getting_started.sh
+```
 
 ### HTTP
 #### http server
@@ -80,7 +83,6 @@ int main(int argc, char* argv[]) {
 ```
 
 ```shell
-# see getting_started.sh
 git clone https://github.com/ithewei/libhv.git
 cd libhv
 make httpd curl

+ 5 - 0
getting_started.sh

@@ -1,6 +1,7 @@
 #!/bin/bash
 
 if [ ! -x bin/httpd -o ! -x bin/curl ]; then
+    make clean
     make httpd curl
 fi
 
@@ -53,3 +54,7 @@ bin/curl -v localhost:8080/v1/api/test -F 'bool=1 int=123 float=3.14 string=hell
 read -n1
 bin/curl -v -X DELETE localhost:8080/v1/api/group/test/user/123
 
+# see logs
+read -n1
+tail -n 100 logs/httpd*.log
+

+ 3 - 1
readme_cn.md

@@ -31,6 +31,9 @@
     - curl
 
 ## 入门
+```
+./getting_started.sh
+```
 
 ### HTTP
 #### http server
@@ -79,7 +82,6 @@ int main(int argc, char* argv[]) {
 ```
 
 ```shell
-# see getting_started.sh
 git clone https://github.com/ithewei/libhv.git
 cd libhv
 make httpd curl