Skip to content

Commit

Permalink
Using the ENV property in the Dockerfile to initialise the process.en…
Browse files Browse the repository at this point in the history
…v.variable.
  • Loading branch information
soniacq committed Jan 26, 2024
1 parent 872977a commit 8b5976e
Show file tree
Hide file tree
Showing 150 changed files with 92,636 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Fill that in and rename to .env
PTG_URL = https://argus-api.hsrn.nyu.edu
3 changes: 2 additions & 1 deletion ARGUS2/src/environments/environments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// const SERVERIP: string = 'http://dashboardptg.vida-nyu.org:7890';
const SERVERIP: string = 'http://192.168.50.223:7890';
// const SERVERIP: string = 'http://192.168.50.223:7890';
const SERVERIP: string = process.env["PTG_URL"];

export const environment = {

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ FROM nginx:stable-alpine
COPY --from=build /src/* /usr/share/nginx/html
##COPY nginx.conf /etc/nginx/conf.d/default.conf


ENV PTG_URL=http://api:8000
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
21 changes: 21 additions & 0 deletions node_modules/@types/node/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions node_modules/@types/node/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8b5976e

Please sign in to comment.