Skip to content

Commit

Permalink
update to work with flask backend and gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
mikellykels committed Jun 9, 2020
1 parent 2e8accb commit 28ef30a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_BACKEND=https://neilmanvar-flask-m3uuizd7iq-uc.a.run.app
REACT_APP_BACKEND=https://mikaelacarino-flask-errors-m3uuizd7iq-uc.a.run.app
REACT_APP_ENVIRONMENT=prod
# REACT_APP_WORKFLOW=false # To enable checkout flow
REACT_APP_WORKFLOW=false
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Following variable must be passed in
# SENTRY_AUTH_TOKEN
SENTRY_ORG=testorg-az
SENTRY_PROJECT=reactadamtf
SENTRY_PROJECT=frontend-react
VERSION=`sentry-cli releases propose-version`
PREFIX=static/js

Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<script>
Sentry.init({
dsn: 'https://a843d07bf5974b14937a1314f49ad4bb@o87286.ingest.sentry.io/5230364',
dsn: 'https://f3e1b754a04b4dc1be1b54454ec6d238@o87286.ingest.sentry.io/1356467',
release: "%REACT_APP_RELEASE%",
environment: "%REACT_APP_ENVIRONMENT%",
beforeSend(event) {
Expand Down
7 changes: 5 additions & 2 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ import hammerImg from "../assets/hammer.png";
import * as actions from '../store/actions/index';

const PORT = process.env.REACT_APP_PORT || 3001;
// make deploy_gcp
const BACKEND = process.env.REACT_APP_BACKEND || `http://localhost:${PORT}`;
const IS_WORKFLOW_DEMO = process.env.REACT_APP_WORKFLOW !== "false";
// npm run deploy
// const BACKEND = `http://localhost:${PORT}`
const WORKFLOW = process.env.REACT_APP_WORKFLOW !== "false";

const request = require('request');

Expand Down Expand Up @@ -96,7 +99,7 @@ class App extends Component {
level: 'info'
});

if (IS_WORKFLOW_DEMO) {
if (WORKFLOW) {
this.myCodeIsPerfect();
}

Expand Down

0 comments on commit 28ef30a

Please sign in to comment.