From de952b21446f7afbb2a62e723646f9e325cdf67c Mon Sep 17 00:00:00 2001 From: Art Date: Mon, 27 Sep 2021 21:31:35 +0300 Subject: [PATCH] 40.5 Testing frontend (#40) --- README.md | 6 ++++++ .../src/environments/environment.prod.ts | 3 ++- support-portal-frontend/src/environments/environment.ts | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 23c0e15..17520d6 100644 --- a/README.md +++ b/README.md @@ -480,3 +480,9 @@ systemctl restart docker - `mvn docker:stop` - `mvn clean package docker:build docker:start -DskipTests` - Visit `https://dockerapp.shyshkin.net` -> allow unsecure + +##### 40.5 Testing frontend + +- `ng build -c production` +- upload to S3 +- visit `http://portal.shyshkin.net` diff --git a/support-portal-frontend/src/environments/environment.prod.ts b/support-portal-frontend/src/environments/environment.prod.ts index ad046a0..f7dc144 100644 --- a/support-portal-frontend/src/environments/environment.prod.ts +++ b/support-portal-frontend/src/environments/environment.prod.ts @@ -1,6 +1,7 @@ export const environment = { production: true, // apiUrl: 'http://support-portal.shyshkin.net:5000', - apiUrl: 'http://dockerapp.shyshkin.net:8080', + // apiUrl: 'http://dockerapp.shyshkin.net:8080', + apiUrl: 'https://dockerapp.shyshkin.net', publicUrls: ['/user/login', '/user/register', '/user/*/image/**', '/user/image/**'] }; diff --git a/support-portal-frontend/src/environments/environment.ts b/support-portal-frontend/src/environments/environment.ts index 01443e3..bacb4d1 100644 --- a/support-portal-frontend/src/environments/environment.ts +++ b/support-portal-frontend/src/environments/environment.ts @@ -4,7 +4,8 @@ export const environment = { production: false, - apiUrl: 'https://portal-back-secure.shyshkin.net', + apiUrl: 'https://dockerapp.shyshkin.net', + // apiUrl: 'https://portal-back-secure.shyshkin.net', // apiUrl: 'http://portal-bean.shyshkin.net', // apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com', // apiUrl: 'http://support-portal.shyshkin.net:5000',