Commit 67206646 authored by wty's avatar wty

开启服务

parent 92d4b73a
......@@ -15,8 +15,8 @@ const typeManage = require('./routes/typeManage')
const engines = require('consolidate')
const app = express();
// global.domain = 'http://dui123.dui88dev.com:3000'
global.domain = 'http://127.0.0.1:3001'
global.domain = 'http://dui123.dui88dev.com:3000'
// global.domain = 'http://127.0.0.1:3001'
const Eureka = require('eureka-node').default
const DockerApp = require('docker-app-node')
......@@ -28,22 +28,22 @@ const pkg = require('./package.json')
// 获取配置的端口号
const port = 3000
// const dockerApp = new DockerApp({
// app,
// appType: 'express',
// port
// })
//
// // 注册Eureka
// global.eureka = new Eureka({
// port, // 应用端口号
// appName: pkg.name, // 应用名称
// services: ['KJY-WEB'] // 依赖服务名
// })
//
// global.eureka.start().then(() => {
// dockerApp.startServer()
// })
const dockerApp = new DockerApp({
app,
appType: 'express',
port
})
// 注册Eureka
global.eureka = new Eureka({
port, // 应用端口号
appName: pkg.name, // 应用名称
services: ['KJY-WEB'] // 依赖服务名
})
global.eureka.start().then(() => {
dockerApp.startServer()
})
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment