Skip to content

Commit

Permalink
staging config
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktombeur committed Oct 24, 2019
1 parent 487e052 commit 5fbe189
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion front-end/.env.staging
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_HOST=http://localhost:8080
REACT_APP_API_HOST=https://artificialcolors-staging.herokuapp.com/
1 change: 1 addition & 0 deletions front-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build_dev": "env-cmd -f ./.env.local npm run-script build",
"build_staging": "env-cmd -f ./.env.staging npm run-script build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down
6 changes: 6 additions & 0 deletions front-end/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<profiles>
<profile>
<id>dev</id>
<properties>
<npm.build.args>run build_dev</npm.build.args>
</properties>
</profile>
<profile>
<id>staging</id>
<properties>
<npm.build.args>run build_staging</npm.build.args>
</properties>
Expand Down

0 comments on commit 5fbe189

Please sign in to comment.