Browse Source

定制配置

MaiXinRong 3 years ago
parent
commit
df94b4dc5b
2 changed files with 15 additions and 1 deletions
  1. 15 0
      dev4qadx.js
  2. 0 1
      package.json

+ 15 - 0
dev4qadx.js

@@ -0,0 +1,15 @@
+'use strict';
+
+/**
+ *
+ *
+ * @author Mai
+ * @date
+ * @version
+ */
+
+const fs = require('fs');
+const packageJSON = JSON.parse(fs.readFileSync(__dirname + '/package.json', 'utf8'));
+packageJSON.name = 'calc_dx' ;
+packageJSON.scripts['start-qadx'] = "egg-scripts start --daemon --port 7006";
+fs.writeFileSync(__dirname + '/package.json', JSON.stringify(packageJSON, '', '\t'));

+ 0 - 1
package.json

@@ -64,7 +64,6 @@
     },
     "scripts": {
         "start": "egg-scripts start --daemon --port 7002",
-        "start-qadx": "egg-scripts start --daemon --port 7002",
         "stop": "egg-scripts stop",
         "start-qa": "set EGG_SERVER_ENV=qa&&egg-scripts start --daemon --port 7002",
         "dev": "egg-bin dev --port 7002",