Skip to content

Commit

Permalink
Merge branch 'chore/deploy-scripts' into 'dev'
Browse files Browse the repository at this point in the history
chore: Add scripts to deploy using AWS S3

See merge request HathorNetwork/admin-frontend!48
  • Loading branch information
msbrogli committed Jul 3, 2019
2 parents fcc9821 + b22a2b1 commit d93d9e3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FULLNODE_HOST := node1.bravo.testnet.hathor.network
REACT_APP_BASE_URL := https://$(FULLNODE_HOST)/v1a/
REACT_APP_WS_URL := wss://$(FULLNODE_HOST)/v1a/ws/

.PHONY: build
build:
REACT_APP_WS_URL=$(REACT_APP_WS_URL) \
REACT_APP_BASE_URL=$(REACT_APP_BASE_URL) \
npm run build

.PHONY: s3_upload
s3_upload:
./s3_prod_upload
3 changes: 3 additions & 0 deletions s3_prod_upload
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec aws s3 sync --delete ./build/ s3://hathor-testnet-public-explorer

0 comments on commit d93d9e3

Please sign in to comment.