mv dist /var/www/www.change-me.com
cd /var/www/www.change-me.com
./chaos i
vi config.toml # don't forget to change domain and database setting
./chaos db e # will print sql scripts to crete database and user
./chaos ng # will generate nginx.conf file
Devel
Env
go get -u github.com/nsf/gocode
go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/alecthomas/gometalinter
go get -u github.com/golang/lint/golint
go get -u github.com/rogpeppe/godef
go get -u github.com/Masterminds/glide
cd $GOPATH/src/github.com/Masterminds/glide
make build
mv glide $GOPATH/bin
go get -u github.com/itpkg/chaos
cd $GOPATH/src/github.com/itpkg/chaos
glide install
cd front-react && npm install
Editor(Atom)
apm install seti-ui seti-syntax
Plugs
go-plus
git-plus
react
atom-beautify
atom-typescript
autosave: enabled is true
Notes
govendor
govendor init # Create the "vendor" folder and the "vendor.json" file.
govendor list # List and filter existing dependencies and packages.
govendor fetch golang.org/x/oauth2 # Like "go get" but copies dependencies into a "vendor" folder.