Explorar el Código

完善启动命令

龚成明 hace 2 años
padre
commit
24eac28ae5
Se han modificado 1 ficheros con 14 adiciones y 19 borrados
  1. 14 19
      README.md

+ 14 - 19
README.md

@@ -3,42 +3,37 @@
 
 在项目根目录执行:
 
-```
 在开发环境时:
+```shell
 cp evi.properties.sample src/main/resources/evi-dev.properties
 vim src/main/resources/evi-dev.properties
+```
+找到:
+
+> 1. src/main/java/common/jfinal/AppConfig.java
+> 2. src/main/resources/blockchain.sql
+然后开始你的项目之旅
+
 
 在生产环境时:
+```shell
 cp evi.properties.sample src/main/resources/evi.properties
 vim src/main/resources/evi.properties
 ```
 
-然后更改数据库信息
-
 -----
 ### 本地运行指南
 
-
-找到:
-```
-1. src/main/java/common/jfinal/AppConfig.java
-2. src/main/resources/blockchain.sql
-```
-然后开始你的项目之旅
-
------
-### 远程运行指南
-
-请打开Dockerfile研究
-
 > 报这个错的话: <br>
 > failed to compute cache key: "/src/main/resources/evi.properties" not found: not found <br>
 > 说明你的第一步没有执行 <br>
 >
 
+```shell
+docker build -t eth-api . && docker run -itd --name eth-api --link mysql -p 8888:8888 eth-api /bin/bash /app/ethereum_viewer_interface-release/ethereum_viewer_interface/jfinal.sh start
 ```
-docker build -t eth-api .
-docker run -it --name eth-api --link mysql -p 8888:8888 eth-api
+
+之后要运行查看的话:
+```shell
 docker exec -it eth-api /bin/bash
-/app/ethereum_viewer_interface-release/ethereum_viewer_interface/jfinal.sh start
 ```