Browse Source

更新了readme和package

龚成明 2 năm trước cách đây
mục cha
commit
ee370865a5
2 tập tin đã thay đổi với 16 bổ sung10 xóa
  1. 13 5
      README.md
  2. 3 5
      package.json

+ 13 - 5
README.md

@@ -1,14 +1,22 @@
-# eth_viewer_webapp
-
-### 开发环境
+# 开发环境
 ```bash
 npm install
 npm run serve
 ```
 
-### 生产环境
+# 生产环境
+
+第一步:移除之前的环境
+```bash
+docker container stop eth-app &&
+docker container rm eth-app &&
+docker image rm eth-app
+```
+
+第二步:运行现有版本
 ```bash
-docker build -t eth-app . && docker run -itd --name eth-app -p 80:80 eth-app
+docker build -t eth-app . && 
+docker run -itd --name eth-app -p 80:80 eth-app
 ```
 
 ### 之后要查看运行

+ 3 - 5
package.json

@@ -3,11 +3,9 @@
   "version": "1.0.0",
   "private": true,
   "scripts": {
-    "serve": "vue-cli-service serve",
-    "build": "vue-cli-service build",
-    "lint": "vue-cli-service lint",
-    "uploadFromMacOS": "sudo scp -i 410.pem -r /Volumes/Code/Customer/410/ethereum_viewer_webapp/dist ec2-user@3.227.34.41:/webapp/frontend-blockchain",
-    "uploadFromWindows": "scp -i 410.pem -r C:/Users/skyfffire/WebstormProjnpm install jqueryects/ethereum_viewer_webapp/dist ec2-user@3.227.34.41:/webapp/frontend-blockchain"
+    "serve": "npm run serve",
+    "install": "npm install",
+    "build": "vue-cli-service build"
   },
   "dependencies": {
     "@mdi/font": "^5.6.55",