36.1.a Create subdomain for Beanstalk environment (#36, #32)

This commit is contained in:
Art
2021-09-27 11:00:41 +03:00
parent 24e40f904c
commit a6eee3d2f2
2 changed files with 13 additions and 2 deletions

View File

@ -320,7 +320,7 @@ systemctl restart docker
- `'~/supportportal' cannot be relativized, cannot resolve arbitrary user home paths.`
- add `<volume>/home/ec2-user/supportportal:/root/supportportal</volume>` - success
#### 36 Deplay Spring Boot JAR file on AWS Elastic Beanstalk
#### 36 Deploy Spring Boot JAR file on AWS Elastic Beanstalk
1. Info about deployment Spring Boot app on AWS
- AWS EBS expects for your apps to listen on port 5000
@ -361,5 +361,15 @@ systemctl restart docker
- modify `environment.ts`
- `ng serve`
- `localhost:4200` -> OK
7. Create subdomain for beanstalk environment
- Route 53 console
- Create new Record for hosted zone `shyshkin.net`
- Record name: `portal-bean`
- Record type A
- Route traffic to `Alias to Elastic Beanstalk`
- `Supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com`
- Visit `http://portal-bean.shyshkin.net` -> have a response from spring boot app -> OK
- Test with Angular App: `localhost:4200`

View File

@ -4,7 +4,8 @@
export const environment = {
production: false,
apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com',
apiUrl: 'http://portal-bean.shyshkin.net',
// apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com',
// apiUrl: 'http://support-portal.shyshkin.net:5000',
// apiUrl: 'http://localhost:8080',
publicUrls: ['/user/login', '/user/register', '/user/*/image/**', '/user/image/**']