switched port to test with Travis

This commit is contained in:
lotte
2020-04-21 15:16:42 +02:00
parent cad9dcaf98
commit 172d3891f0
6 changed files with 8 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
FROM node:12-alpine
WORKDIR /app
ADD . /app/
EXPOSE 4000
EXPOSE 3000
# We run yarn install with an increased network timeout (5min) to avoid "ESOCKETTIMEDOUT" errors from hub.docker.com
# See, for example https://github.com/yarnpkg/yarn/issues/5540

View File

@@ -66,7 +66,7 @@
"builder": "@angular-builders/custom-webpack:dev-server",
"options": {
"browserTarget": "dspace-angular-cli:build",
"port": 4000
"port": 3000
},
"configurations": {
"production": {

View File

@@ -7,7 +7,7 @@ services:
environment:
DSPACE_HOST: dspace-angular
DSPACE_NAMESPACE: /
DSPACE_PORT: '4000'
DSPACE_PORT: '3000'
DSPACE_SSL: "false"
image: dspace/dspace-angular:latest
build:
@@ -16,8 +16,8 @@ services:
networks:
dspacenet:
ports:
- published: 4000
target: 4000
- published: 3000
target: 3000
- published: 9876
target: 9876
stdin_open: true

View File

@@ -12,7 +12,7 @@ exports.config = {
// Change to 'false' to run tests using a remote Selenium server
directConnect: true,
// Change if the website to test is not on the localhost
baseUrl: 'http://localhost:4000/',
baseUrl: 'http://localhost:3000/',
// -----------------------------------------------------------------
specs: [
'./src/**/*.e2e-spec.ts'

View File

@@ -27,7 +27,7 @@ import * as cookieParser from 'cookie-parser';
// Express server
const app = express();
const PORT = process.env.PORT || 4000;
const PORT = process.env.PORT || 3000;
const DIST_FOLDER = join(process.cwd(), 'dist/browser');
// * NOTE :: leave this as require() since this file is built Dynamically from webpack

View File

@@ -9,7 +9,7 @@ export const environment: GlobalConfig = {
ui: {
ssl: false,
host: 'localhost',
port: 4000,
port: 3000,
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: '/',
},