diff --git a/README.md b/README.md index aa0399a..31a9fe1 100644 --- a/README.md +++ b/README.md @@ -12,23 +12,27 @@ to html so that's what I've focused on. # Install +go get github.com/dballard/transmet + ## DB setup -Create postgress DB and put details in db/dbconf.yml -on that DB +sudo apt-get install postgres postgresql-contrib -sudo apt-get install postgresql-contrib +Create postgress DB and user CREATE EXTENSION pgcrypto; -go get bitbucket.org/liamstask/goose/cmd/goose +put DB details in + db/dbconf.yml (copied from db/dbconf.EXAMPLE) + config/prod.json (copied from config/local.json) -edit db/dbconf.yaml +go get bitbucket.org/liamstask/goose/cmd/goose goose up -## Build and run -go build +## Run + +Assumed GOPATH=/opt/go edit transmet.conf to point to correct location diff --git a/db/dbconf.yml b/db/dbconf.yml.EXAMPLE similarity index 100% rename from db/dbconf.yml rename to db/dbconf.yml.EXAMPLE diff --git a/transmet.conf b/transmet.conf index 48b4835..95ec4d7 100644 --- a/transmet.conf +++ b/transmet.conf @@ -10,8 +10,8 @@ start on (net-device-up and runlevel [2345]) stop on (runlevel [016]) -chdir /opt/transmet +chdir /opt/go/src/github.com/dballard/transmet respawn -exec ./transmet --env prod +exec /opt/go/bin/transmet --env prod