From 56bac9533601e57c4fd9f949cf2bee746c967508 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 26 Oct 2020 10:29:05 +0800 Subject: [PATCH 1/3] add the first app.json for heroku --- app.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 000000000..e7c72aea7 --- /dev/null +++ b/app.json @@ -0,0 +1,26 @@ +{ + "name": "bbgo", + "description": "a modern cryptocurrency trading bot", + "repository": "https://github.com/c9s/bbgo", + "keywords": [ + "trading", + "cryptocurrency", + "crypto" + ], + "env": { + "MAX_API_KEY": { + "description": "The API key of your MAX Exchange account" + }, + "MAX_API_SECRET": { + "description": "The API secret of your MAX Exchange account" + } + }, + "buildpacks": [ + { + "url": "heroku/go" + } + ], + "addons": [ + "jawsdb:kitefin" + ] +} From 2d0c2c56313c58cd6bb5e2f6532e84ce92eab6c9 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 26 Oct 2020 10:46:19 +0800 Subject: [PATCH 2/3] add Procfile --- Procfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 000000000..95896ea4b --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +worker: bin/bbgo run --config config/bbgo.yaml From a559096208dc1518cd64d14b1c7aaf86038abb02 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 26 Oct 2020 10:48:38 +0800 Subject: [PATCH 3/3] add heroku build flags --- go.mod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go.mod b/go.mod index f9ab3dd48..58e0783a4 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ +// +heroku install ./cmd/... + module github.com/c9s/bbgo go 1.13