From 2a63d4372bcc61da12f0a19f7d4eb119d46ee9a3 Mon Sep 17 00:00:00 2001 From: laeshiny Date: Thu, 9 Mar 2017 00:28:55 +0900 Subject: [PATCH] add missing package and command --- CONTRIBUTING.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5d1608b3..81eb363d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,9 +12,14 @@ When creating a pull-request you should: - Install MySQL / MariaDB - Install node.js -1) Set up the gopath +1) Set up GOPATH, GOBIN and Workspace ``` +cd {WORKING_DIRECTORY} +export GOPATH=`pwd` +export GOBIN=$GOPATH/bin +export PATH=$PATH:$GOBIN + mkdir -p $GOPATH/src/github.com/ansible-semaphore && cd $GOPATH/src/github.com/ansible-semaphore ``` @@ -27,7 +32,7 @@ git clone --recursive git@github.com:ansible-semaphore/semaphore.git && cd semap 3) Install dev dependencies ``` -go get ./... github.com/cespare/reflex github.com/jteeuwen/go-bindata/... +go get ./... github.com/cespare/reflex github.com/jteeuwen/go-bindata/... github.com/mitchellh/gox npm install async npm install -g nodemon pug-cli less ``` @@ -48,6 +53,7 @@ cat <> config.json EOT echo "create database semaphore;" | mysql -uroot -p +go-bindata -debug -o util/bindata.go -pkg util config.json db/migrations/ $(find public/* -type d -print) go run cli/main.go -config ./config.json -migrate ```