From 32915038b696a5c638fae616139e0cc3d500c111 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sat, 16 May 2015 13:04:46 -0700 Subject: [PATCH] deployment tweaks --- README.md | 18 +++++++++++------- db/{dbconf.yml => dbconf.yml.EXAMPLE} | 0 transmet.conf | 4 ++-- 3 files changed, 13 insertions(+), 9 deletions(-) rename db/{dbconf.yml => dbconf.yml.EXAMPLE} (100%) 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