|
|
@@ -2,12 +2,18 @@
|
|
|
# 运行指南
|
|
|
|
|
|
在项目根目录执行:
|
|
|
+
|
|
|
```
|
|
|
-cp evi-dev.properties.sample src/main/resources/evi-dev.properties
|
|
|
+在开发环境时:
|
|
|
+cp evi.properties.sample src/main/resources/evi-dev.properties
|
|
|
vim src/main/resources/evi-dev.properties
|
|
|
+
|
|
|
+在生产环境时:
|
|
|
+cp evi.properties.sample src/main/resources/evi.properties
|
|
|
+vim src/main/resources/evi.properties
|
|
|
```
|
|
|
-然后更改数据库信息
|
|
|
|
|
|
+然后更改数据库信息
|
|
|
|
|
|
-----
|
|
|
### 本地运行指南
|
|
|
@@ -26,5 +32,13 @@ vim src/main/resources/evi-dev.properties
|
|
|
请打开Dockerfile研究
|
|
|
|
|
|
> 报这个错的话: <br>
|
|
|
-> failed to compute cache key: "/src/main/resources/evi-dev.properties" not found: not found <br>
|
|
|
+> failed to compute cache key: "/src/main/resources/evi.properties" not found: not found <br>
|
|
|
> 说明你的第一步没有执行 <br>
|
|
|
+>
|
|
|
+
|
|
|
+```
|
|
|
+docker build -t eth-api .
|
|
|
+docker run -it --name eth-api --link mysql -p 8888:8888 eth-api
|
|
|
+docker exec -it eth-api /bin/bash
|
|
|
+/app/ethereum_viewer_interface-release/ethereum_viewer_interface/jfinal.sh start
|
|
|
+```
|