deploy to heroku.

This commit is contained in:
fiatjaf 2021-01-14 21:56:40 -03:00
parent 6ed83d6bc3
commit 3132195275
5 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
relay-lite: $(shell find . -name "*.go")
go build -ldflags="-s -w" -o ./relay-lite
go build -ldflags="-s -w" -tags lite -o ./relay-lite
relay-full: $(shell find . -name "*.go")
go build -ldflags="-s -w" -tags full -o ./relay-full
go build -ldflags="-s -w" -o ./relay-full

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: bin/nostr-relay-poc

View File

@ -16,7 +16,7 @@ type Settings struct {
Host string `envconfig:"HOST" default:"0.0.0.0"`
Port string `envconfig:"PORT" default:"7447"`
PostgresDatabase string `envconfig:"POSTGRESQL_DATABASE"`
PostgresDatabase string `envconfig:"DATABASE_URL"`
SQLiteDatabase string `envconfig:"SQLITE_DATABASE"`
}

View File

@ -1,4 +1,4 @@
// +build full
// +build -lite
package main

View File

@ -1,4 +1,4 @@
// +build !full
// +build !lite
package main