Housekeeping: Update server.ts to match new conventions in sdk (#36)
This commit is contained in:
Родитель
3efde6494b
Коммит
5b8e9b7abc
|
@ -3,18 +3,16 @@
|
|||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { log, WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import { WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import dotenv from 'dotenv';
|
||||
import { resolve as resolvePath } from 'path';
|
||||
import App from './app';
|
||||
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
process.on('uncaughtException', err => console.log('uncaughtException', err));
|
||||
process.on('unhandledRejection', reason => console.log('unhandledRejection', reason));
|
||||
|
||||
log.enable('app');
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
// Start listening for connections, and serve static files
|
||||
const server = new WebHost({
|
||||
|
|
|
@ -3,18 +3,16 @@
|
|||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { log, WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import { WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import dotenv from 'dotenv';
|
||||
import { resolve as resolvePath } from 'path';
|
||||
import App from './app';
|
||||
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
process.on('uncaughtException', err => console.log('uncaughtException', err));
|
||||
process.on('unhandledRejection', reason => console.log('unhandledRejection', reason));
|
||||
|
||||
log.enable('app');
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
// Start listening for connections, and serve static files
|
||||
const server = new WebHost({
|
||||
|
|
|
@ -3,18 +3,16 @@
|
|||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { log, WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import { WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import dotenv from 'dotenv';
|
||||
import { resolve as resolvePath } from 'path';
|
||||
import App from './app';
|
||||
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
process.on('uncaughtException', err => console.log('uncaughtException', err));
|
||||
process.on('unhandledRejection', reason => console.log('unhandledRejection', reason));
|
||||
|
||||
log.enable('app');
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
// Start listening for connections, and serve static files
|
||||
const server = new WebHost({
|
||||
|
|
|
@ -3,18 +3,16 @@
|
|||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
import { log, WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import { WebHost } from '@microsoft/mixed-reality-extension-sdk';
|
||||
import dotenv from 'dotenv';
|
||||
import { resolve as resolvePath } from 'path';
|
||||
import App from './app';
|
||||
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
process.on('uncaughtException', err => console.log('uncaughtException', err));
|
||||
process.on('unhandledRejection', reason => console.log('unhandledRejection', reason));
|
||||
|
||||
log.enable('app');
|
||||
// Read .env if file exists
|
||||
dotenv.config();
|
||||
|
||||
// Start listening for connections, and serve static files
|
||||
const server = new WebHost({
|
||||
|
|
Загрузка…
Ссылка в новой задаче