Structured platform specific src files.

This commit is contained in:
William Welling
2017-03-24 10:01:38 -05:00
parent 52c0a82ce7
commit 76b1875e54
12 changed files with 342 additions and 195 deletions

View File

@@ -4,7 +4,7 @@
// if you are including modules that modify Promise, such as NewRelic,, you must include them before polyfills
import 'angular2-universal-polyfills';
import 'ts-helpers';
import './__workaround.node'; // temporary until 2.1.1 things are patched in Core
import './platform/workarounds/__workaround.node'; // temporary until 2.1.1 things are patched in Core
import * as fs from 'fs';
import * as path from 'path';
@@ -20,7 +20,7 @@ import { enableProdMode } from '@angular/core';
import { createEngine } from 'angular2-express-engine';
// App
import { MainModuleNgFactory } from './node.module.ngfactory';
import { MainModuleNgFactory } from './platform/modules/node.module.ngfactory';
// Routes
import { routes } from './server.routes';
@@ -121,6 +121,6 @@ app.get('*', function(req, res) {
});
// Server
let server = app.listen(app.get('port'), () => {
let server = app.listen(app.get('port'), app.get('address'), () => {
console.log(`Listening on: http://${server.address().address}:${server.address().port}`);
});