Skip to content

Commit

Permalink
feat: Made a prod angular build
Browse files Browse the repository at this point in the history
  • Loading branch information
kdhttps committed May 25, 2020
1 parent 21443ff commit 7753a25
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ COPY ./client ./client

# Build client
RUN npm install -g @angular/[email protected]
RUN cd ./client && ng build && cp -R dist/client ../
RUN cd ./client && ng build --prod && cp -R dist/client ../

ENTRYPOINT [ "npm", "start" ]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@ npm start
```sh
npm start
```

## Deploy on Heroku

1.

```
heroku container:push [image-name] -a [your-app-name]
```
4 changes: 2 additions & 2 deletions client/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
export const environment = {
production: true,
apiURL: 'http://localhost:3000',
apiURL: 'https://mean-stack.herokuapp.com',
// OP Server configuration
clientId: 'xGZxEAJhzlkuQUlWl90y1ntIX-0UDWHx',
opServer: 'https://kdhttps.auth0.com',
opServerUserInfoEndpoint: '/userinfo',
opServerExtraParamsInAuthRequest: {
audience: 'https://kdhttps.auth0.com/api/v2/'
},
redirectURI: 'http://localhost:4200/callback',
redirectURI: 'https://mean-stack.herokuapp.com/callback',
scope: 'openid email profile',
};

0 comments on commit 7753a25

Please sign in to comment.