deployment tweaks

This commit is contained in:
Dan Ballard 2015-05-16 13:04:46 -07:00
parent 7679b45092
commit 32915038b6
3 changed files with 13 additions and 9 deletions

View File

@ -12,23 +12,27 @@ to html so that's what I've focused on.
# Install # Install
go get github.com/dballard/transmet
## DB setup ## 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; 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 goose up
## Build and run ## Run
go build
Assumed GOPATH=/opt/go
edit transmet.conf to point to correct location edit transmet.conf to point to correct location

View File

@ -10,8 +10,8 @@ start on (net-device-up
and runlevel [2345]) and runlevel [2345])
stop on (runlevel [016]) stop on (runlevel [016])
chdir /opt/transmet chdir /opt/go/src/github.com/dballard/transmet
respawn respawn
exec ./transmet --env prod exec /opt/go/bin/transmet --env prod