Housekeeping: Update server.ts to match new conventions in sdk (#36)

This commit is contained in:
Eric Anderson 2019-05-28 08:29:28 -07:00 коммит произвёл GitHub
Родитель 3efde6494b
Коммит 5b8e9b7abc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 12 добавлений и 20 удалений

Просмотреть файл

@ -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({