Skip to content

Commit

Permalink
.env files updated to match docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpaulovich committed Oct 15, 2020
1 parent d0ae0e5 commit 0a552b3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .docker/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ services:
wallet-spa:
build:
args:
ENV: development
ENV: docker
6 changes: 6 additions & 0 deletions wallet-spa/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
REACT_APP_AUTHORITY=https://wallet.local:8081/identity-server
REACT_APP_REDIRECT_URI=https://wallet.local:8081/callback
REACT_APP_POST_LOGOUT_REDIRECT_URI=https://wallet.local:8081
REACT_APP_ACCOUNTS_API=https://wallet.local:8081/accounts-api
SSL_CRT_FILE=../.docker/https/localhost.crt
SSL_KEY_FILE=../.docker/https/localhost.key
4 changes: 3 additions & 1 deletion wallet-spa/development.env → wallet-spa/.env.docker
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
REACT_APP_AUTHORITY=https://wallet.local:8081/identity-server
REACT_APP_REDIRECT_URI=https://wallet.local:8081/callback
REACT_APP_POST_LOGOUT_REDIRECT_URI=https://wallet.local:8081
REACT_APP_ACCOUNTS_API=https://wallet.local:8081/accounts-api
REACT_APP_ACCOUNTS_API=https://wallet.local:8081/accounts-api
HTTPS=false
PORT=3000
2 changes: 0 additions & 2 deletions wallet-spa/.env → wallet-spa/.env.localhost
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ REACT_APP_POST_LOGOUT_REDIRECT_URI=https://localhost:5002
REACT_APP_ACCOUNTS_API=https://localhost:5001
HTTPS=true
PORT=5002
SSL_CRT_FILE=../.docker/https/localhost.crt
SSL_KEY_FILE=../.docker/https/localhost.key
1 change: 1 addition & 0 deletions wallet-spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"start": "NODE_ENV=localhost react-scripts start",
"start-localhost": "NODE_ENV=localhost react-scripts start",
"start-development": "NODE_ENV=development react-scripts start",
"start-docker": "NODE_ENV=docker react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down
1 change: 0 additions & 1 deletion wallet-spa/src/pages/Accounts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
import Divider from "@material-ui/core/Divider";


class Accounts extends React.Component {
static displayName = Accounts.name;

Expand Down
7 changes: 1 addition & 6 deletions wallet-spa/src/pages/OpenAccount.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import React, { } from "react";
import accountsService from "../store/accountsService";
import { withStyles } from "@material-ui/core/styles";
import PropTypes from 'prop-types';
import { withRouter } from "react-router";
import PageBase from "../components/PageBase";
import { Link } from "react-router-dom";
import Button from "@material-ui/core/Button";
import MenuItem from "@material-ui/core/MenuItem";
import TextField from "@material-ui/core/TextField";
import Select from "@material-ui/core/Select";
import FormControlLabel from "@material-ui/core/FormControlLabel";
import Switch from "@material-ui/core/Switch";
import { grey } from "@material-ui/core/colors";
import Divider from "@material-ui/core/Divider";
import FormControl from "@material-ui/core/FormControl";
import InputLabel from "@material-ui/core/InputLabel";

Expand All @@ -38,7 +33,7 @@ class OpenAccount extends React.Component {
handleInputChange = event => {
const { name, value } = event.target;
this.setState(
prevState => {
() => {
return {
[name]: value
};
Expand Down

0 comments on commit 0a552b3

Please sign in to comment.