yakuza0 2.22.1-beta.2 → 2.22.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/index.js CHANGED
@@ -207,7 +207,7 @@ var run = exports.run = function () {
207
207
  env = _ref4.env,
208
208
  mode = _ref4.mode;
209
209
 
210
- var _ref6, apps;
210
+ var _ref6, apps, bin;
211
211
 
212
212
  return _regenerator2.default.wrap(function _callee2$(_context2) {
213
213
  while (1) {
@@ -222,21 +222,30 @@ var run = exports.run = function () {
222
222
  case 4:
223
223
  _ref6 = _context2.sent;
224
224
  apps = _ref6.apps;
225
+ bin = "yk-dev";
226
+ _context2.t0 = _os2.default.type();
227
+ _context2.next = _context2.t0 === "Linux" ? 10 : 12;
228
+ break;
229
+
230
+ case 10:
231
+ bin = "yk";
232
+ return _context2.abrupt('break', 12);
225
233
 
234
+ case 12:
226
235
 
227
236
  if (mode === "async") {
228
237
  apps.forEach(function (key) {
229
- spawn('yk-dev', ['serve', key], { shell: true, stdio: 'inherit' });
238
+ spawn(bin, ['serve', key], { shell: true, stdio: 'inherit' });
230
239
  });
231
240
  } else {
232
241
  // await _.asyncMap(apps, async (key) => {
233
242
  // spawn(`yk-dev`, ['serve', key], { shell: true, stdio: 'inherit' });
234
243
  // // spawnSync(`yk-dev`, ['serve', key], { shell: true, stdio: 'inherit' });
235
244
  // })
236
- spawn('yk-dev', ['serve', apps.join(',')], { shell: true, stdio: 'inherit' });
245
+ spawn(bin, ['serve', apps.join(',')], { shell: true, stdio: 'inherit' });
237
246
  }
238
247
 
239
- case 7:
248
+ case 13:
240
249
  case 'end':
241
250
  return _context2.stop();
242
251
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.22.1-beta.2",
3
+ "version": "2.22.1-beta.4",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -98,6 +98,24 @@ exports.default = function () {
98
98
  timeout = _config2.default.server.infoTimeout + 5000;
99
99
  commonHeaders = {};
100
100
 
101
+ // // health-check ssl use
102
+ // if (yConf.inImage) {
103
+ // const appHc = express();
104
+ // appHc.use((req, res, next) => {
105
+ // const method = req.method.toUpperCase();
106
+ // const path = req.url;
107
+ // if (method === "GET" && path === '/sys/health-check') {
108
+ // res.status(200).send({
109
+ // response_status: 200,
110
+ // data: 'alive',
111
+ // });
112
+ // } else {
113
+ // res.status(404).send("The page was not found ~~")
114
+ // }
115
+ // })
116
+ // appHc.listen(yConf.server.hcPort);
117
+ // }
118
+
101
119
  getHeader = function getHeader(req) {
102
120
  if (req && req.headers) {
103
121
  var _ref3;
@@ -277,6 +277,7 @@ var render = function () {
277
277
  host: processEnv.HOST || '127.0.0.1',
278
278
  port: processEnv.PORT || 3000,
279
279
  appPort: processEnv.PORT || 3100,
280
+ // hcPort: 81,
280
281
  orbHost: processEnv.ORBHOST || 'fe-dev.inner.px.nfjbill.ren',
281
282
  orbPort: processEnv.ORBPORT || 5601,
282
283
  orbHosts: processEnv.ORBHOSTS,