Skip to content

Commit

Permalink
feat: make client port configurable through environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-r4bbit committed Sep 11, 2018
1 parent 39742c3 commit 52fa04b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
"scripts": {
"ui-assets": "copy-aragon-ui-assets -n aragon-ui ./build",
"start": "npm run ui-assets && parcel serve src/index.html --port 3000 --out-dir ./build --no-cache",
"start": "scripts/start.sh",
"start:local": "scripts/launch-local.sh",
"start:mainnet": "REACT_APP_ETH_NETWORK_TYPE=mainnet npm start",
"start:rinkeby": "npm start",
Expand Down
8 changes: 8 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

if [[ ${ARAGON_CLIENT_PORT} ]];
then
npm run ui-assets && parcel serve src/index.html --port $ARAGON_CLIENT_PORT --out-dir ./build --no-cache;
else
npm run ui-assets && parcel serve src/index.html --port 3000 --out-dir ./build --no-cache;
fi;

0 comments on commit 52fa04b

Please sign in to comment.