mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
15 lines
528 B
TypeScript
15 lines
528 B
TypeScript
import * as child from 'child_process';
|
|
|
|
import { AppConfig } from '../src/config/app-config.interface';
|
|
import { buildAppConfig } from '../src/config/config.server';
|
|
|
|
const appConfig: AppConfig = buildAppConfig();
|
|
|
|
/**
|
|
* Calls `ng serve` with the following arguments configured for the UI in the app config: host, port, nameSpace, ssl
|
|
*/
|
|
child.spawn(
|
|
`ng serve --host ${appConfig.ui.host} --port ${appConfig.ui.port} --serve-path ${appConfig.ui.nameSpace} --ssl ${appConfig.ui.ssl}`,
|
|
{ stdio: 'inherit', shell: true }
|
|
);
|