Skip to content

Commit

Permalink
Revert "fix(@schematics/angular): rename SSR port env variable"
Browse files Browse the repository at this point in the history
This reverts commit 950a445.

(cherry picked from commit a673baf)
  • Loading branch information
alan-agius4 committed Apr 2, 2024
1 parent 97da8ba commit 6061a0b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function startNodeServer(
): Observable<void> {
const outputPath = serverOutput.outputPath as string;
const path = join(outputPath, 'main.js');
const env = { ...process.env, SSR_PORT: '' + port, PORT: '' + port };
const env = { ...process.env, PORT: '' + port };

const args = ['--enable-source-maps', `"${path}"`];
if (inspectMode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Serve SSR Builder', () => {
return server;
}
app().listen(process.env['SSR_PORT']);
app().listen(process.env['PORT']);
export * from './app/app.module.server';
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Serve SSR Builder', () => {
return server;
}
app().listen(process.env['SSR_PORT']);
app().listen(process.env['PORT']);
export * from './app/app.module.server';
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('Serve SSR Builder', () => {
return server;
}
app().listen(process.env['SSR_PORT']);
app().listen(process.env['PORT']);
export * from './app/app.module.server';
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export function app(): express.Express {
}
function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;
// Start up the Node server
const server = app();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function app(): express.Express {
}
function run() {
const port = process.env.SSR_PORT || 4000;
const port = process.env.PORT || 4000;
// Start up the Node server
const server = app();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function app(): express.Express {
}

function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;

// Start up the Node server
const server = app();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function app(): express.Express {
}

function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;

// Start up the Node server
const server = app();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function app(): express.Express {
}

function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;

// Start up the Node server
const server = app();
Expand Down

0 comments on commit 6061a0b

Please sign in to comment.