rainwer 8 months ago
parent
commit
08b234219e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      feature.drone.yml
  2. 1 1
      nginx.conf

+ 1 - 1
feature.drone.yml

@@ -14,7 +14,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
         path: /home/nginx/html # 将应用打包好的和执行脚本挂载出来
     commands: # 定义在Docker容器中执行的shell命令
       - npm install --registry=https://registry.npmmirror.com
-      - npm run build:test
+      - npm run build:prod
       - mkdir -p /home/nginx/html/yzbh/
       - cp -r dist /home/nginx/html/yzbh/
       - cp -r ssl /home/nginx/html/yzbh/

+ 1 - 1
nginx.conf

@@ -32,7 +32,7 @@ http {
     #     proxy_pass http://node472.com/;
     # }
 
-    location /prod-api/{
+    location /dev-api/{
         proxy_set_header Host $http_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header REMOTE-HOST $remote_addr;