mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
17 lines
609 B
TypeScript
17 lines
609 B
TypeScript
import * as child from 'child_process';
|
|
|
|
import { environment } from '../src/environments/environment';
|
|
|
|
// 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 environment: host, port, nameSpace, ssl
|
|
*/
|
|
child.spawn(
|
|
`ng serve --host ${environment.ui.host} --port ${environment.ui.port} --serve-path ${environment.ui.nameSpace} --ssl ${environment.ui.ssl}`,
|
|
{ stdio:'inherit', shell: true }
|
|
);
|