guhongwei 4 éve
szülő
commit
055822d7a8
6 módosított fájl, 11 hozzáadás és 11 törlés
  1. 4 4
      app/router.js
  2. 3 3
      config/config.default.js
  3. 1 1
      config/config.local.js
  4. 1 1
      config/config.prod.js
  5. 1 1
      ecosystem.config.js
  6. 1 1
      package.json

+ 4 - 4
app/router.js

@@ -6,9 +6,9 @@
 module.exports = app => {
   const { router, controller } = app;
   // 顾客表
-  router.resources('carorder', '/api/servicetest/carorder', controller.carorder); // index、create、show、destroy
-  router.post('carorder', '/api/servicetest/carorder/update/:id', controller.carorder.update);
+  router.resources('carorder', '/api/wxyservice/carorder', controller.carorder); // index、create、show、destroy
+  router.post('carorder', '/api/wxyservice/carorder/update/:id', controller.carorder.update);
   // 维修表
-  router.resources('repair', '/api/servicetest/repair', controller.repair); // index、create、show、destroy
-  router.post('repair', '/api/servicetest/repair/update/:id', controller.repair.update);
+  router.resources('repair', '/api/wxyservice/repair', controller.repair); // index、create、show、destroy
+  router.post('repair', '/api/wxyservice/repair/update/:id', controller.repair.update);
 };

+ 3 - 3
config/config.default.js

@@ -26,11 +26,11 @@ module.exports = appInfo => {
   // add your config here
   config.cluster = {
     listen: {
-      port: 8081,
+      port: 8082,
     },
   };
   config.mongoose = {
-    url: 'mongodb://localhost:27017/servicetest',
+    url: 'mongodb://localhost:27017/wxyservice',
     options: {
       // user: 'admin',
       // pass: 'admin',
@@ -43,7 +43,7 @@ module.exports = appInfo => {
   config.jwt = {
     ...jwt,
     expiresIn: '1d',
-    issuer: 'servicetest',
+    issuer: 'wxyservice',
   };
 
   // config.amqp = {

+ 1 - 1
config/config.local.js

@@ -9,7 +9,7 @@ module.exports = () => {
   };
 
   config.mongoose = {
-    url: 'mongodb://localhost:27017/servicetest',
+    url: 'mongodb://localhost:27017/wxyservice',
     options: {
       // user: 'demo',
       // pass: 'demo',

+ 1 - 1
config/config.prod.js

@@ -10,7 +10,7 @@ module.exports = () => {
 
   // mongoose config
   config.mongoose = {
-    url: 'mongodb://localhost:27017/servicetest',
+    url: 'mongodb://localhost:27017/wxyservice',
     options: {
     // user: "admin",
     // pass: "admin",

+ 1 - 1
ecosystem.config.js

@@ -1,7 +1,7 @@
 /* eslint-disable quotes */
 'use strict';
 
-const app = "servicetest";
+const app = "wxyservice";
 module.exports = {
   apps: [{
     name: app, // 应用名称

+ 1 - 1
package.json

@@ -1,5 +1,5 @@
 {
-  "name": "servicetest",
+  "name": "wxyservice",
   "version": "1.0.0",
   "description": "",
   "private": true,