obcon-scada / app /bin /proxy.js
chanmin0723's picture
Initial obcon SCADA deploy
e4bf523
Raw
History Blame Contribute Delete
732 Bytes
'use strict'
/**
* Copyright (c) 2017~2024, OBCon Inc.
* All rights reserved.
*/
/**
* @file
* @copyright 2017~2024, OBCon Inc.
* @author gye hyun james kim [pnuskgh@gmail.com]
*/
global.appl = {
root: __dirname + '/..',
type: 'obcon_proxy'
};
const path = require('path');
global.appl = global.appl || {};
global.appl.root = global.appl.root || path.resolve(__dirname, '..');
global.appl.type = global.appl.type || 'obcon_proxy';
const mainFunc = async function() {
const Application = require('../include/Application.js');
const obconAppl = new Application({
name: 'OBCon Proxy',
type: 'obcon_proxy'
});
await obconAppl.initApplication();
await obconAppl.run();
}
mainFunc();