Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.

Explicit env vars #28

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Installing the database schema and loading sample data:
Configuration is handled via environment variables:

STORAGE_URL=postgres://user:password@host:port/db_name \
QUEUE_URL=redis://host:port/db_number botbot-bot
REDIS_PLUGIN_QUEUE_URL=redis://host:port/db_number botbot-bot

## Architecture

Expand Down
Binary file added botbot-bot
Binary file not shown.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const (

func main() {
flag.Parse()

glog.Infoln("START. Use 'botbot -help' for command line options.")
glog.Infoln("STORAGE_URL: ", os.Getenv("STORAGE_URL"))
glog.Infoln("REDIS_PLUGIN_QUEUE_URL: ", os.Getenv("REDIS_PLUGIN_QUEUE_URL"))

storage := common.NewPostgresStorage()
defer storage.Close()
Expand Down