Skip to content

Commit

Permalink
feat: update config to support heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
iczc committed Sep 10, 2021
1 parent aa777fa commit 81e6983
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: bin/eth-faucet -apiport $PORT
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ cd eth-faucet

2. Bundle Front-end web with Rollup
```bash
cd web && npm install
npm run build
```
_For more details, please refer to the [web readme](https://github.com/chainflag/eth-faucet/blob/main/web/README.md)_

3. Build binary application to run
```bash
cd ..
go build -o eth-faucet main.go
export WEB3_PROVIDER=https://ropsten.infura.io
export PRIVATE_KEY=secret
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module github.com/chainflag/eth-faucet

// +heroku goVersion go1.16
go 1.16

require (
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"scripts": {
"build": "cd web && npm ci --production=false && npx rollup -c"
}
}

0 comments on commit 81e6983

Please sign in to comment.