浏览代码

修改web部署参数

yingp 7 年之前
父节点
当前提交
4658461d70
共有 3 个文件被更改,包括 13 次插入8 次删除
  1. 6 0
      frontend/saas-web/Dockerfile.test
  2. 3 7
      frontend/saas-web/app.json
  3. 4 1
      frontend/saas-web/package.json

+ 6 - 0
frontend/saas-web/Dockerfile.test

@@ -0,0 +1,6 @@
+FROM hub.c.163.com/library/nginx
+MAINTAINER USOFTCHINA <yingp@usoftchina.com>
+RUN rm /etc/nginx/conf.d/default.conf
+ADD runtime/nginx/default.conf /etc/nginx/conf.d/
+COPY build/testing/saas/ /usr/share/nginx/html/
+COPY set-token.html /usr/share/nginx/html/

+ 3 - 7
frontend/saas-web/app.json

@@ -291,15 +291,11 @@
         "cache": {
             "enable": true
         },
-        /**"compressor": {
+        "compressor": {
             "type": "yui"
-        },*/
-        "compressor":null,
+        },
         "server": {
-            "basePath": {
-                "https": "https://saas-api-dev.usoftchina.com:5443",
-                "http": "http://192.168.0.181:8560"
-            },
+            "basePath": "https://saas-api.usoftchina.com",
             "urlPattern": "^\/api\/"
         }
     },

+ 4 - 1
frontend/saas-web/package.json

@@ -4,7 +4,10 @@
   "description": "saas在线进销存系统",
   "main": "app.js",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "test": "echo \"Error: no test specified\" && exit 1",
+    "dev": "sencha app watch",
+    "build-test": "sencha app build --testing",
+    "build": "sencha app build"
   },
   "keywords": [
     "saas"