Purpose hace 3 meses
padre
commit
93dfe0c9e3
Se han modificado 4 ficheros con 5 adiciones y 3 borrados
  1. 1 0
      .gitignore
  2. 2 1
      config/dev.env.js
  3. 1 1
      config/prod.env.js
  4. 1 1
      package.json

+ 1 - 0
.gitignore

@@ -1,6 +1,7 @@
 .DS_Store
 node_modules/
 /dist/
+/rfid-app/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*

+ 2 - 1
config/dev.env.js

@@ -4,5 +4,6 @@ const prodEnv = require('./prod.env')
 
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
-  MS_CONFIG: '{"direwolfAdmin":"","moduleContext":"/scm-app","gatewayRoute":"/api"}'
+  // MS_CONFIG: '{"direwolfAdmin":"","moduleContext":"/scm-app","gatewayRoute":"/api"}'
+  MS_CONFIG: '{"direwolfAdmin":"/a","moduleContext":"/scm-app","gatewayRoute":"/scm/scm.rfid-bizc"}'
 })

+ 1 - 1
config/prod.env.js

@@ -2,5 +2,5 @@
 module.exports = {
   NODE_ENV: '"production"',
   // MS_CONFIG: '{"direwolfAdmin":"/a","moduleContext":"/scm-app","gatewayRoute":"/scm/scm.contract-bizc"}'
-  MS_CONFIG: '{"direwolfAdmin":"","moduleContext":"/scm-app","gatewayRoute":"/api"}'
+  MS_CONFIG: '{"direwolfAdmin":"/a","moduleContext":"/scm-app","gatewayRoute":"/scm/scm.rfid-bizc"}'
 }

+ 1 - 1
package.json

@@ -9,7 +9,7 @@
     "start": "npm run dev",
     "lint": "eslint --ext .js,.vue src",
     "build": "node build/build.js",
-    "build-only": "rm -rf dist && npm run build",
+    "build-only": "rm -rf rfid-app && npm run build && mv dist rfid-app",
     "build-to-test": "rm -rf dist && npm run build && scp -r dist green-box-public:/mnt/webapp/Jeff.RFID/UI",
     "switch-node-version": "sudo n v14.20.1"
   },