Beispiel #1
0
func Build(s *wb.Session) {
	s.LRun("go build -ldflags '-r lib'")
}
Beispiel #2
0
func Deploy(s *wb.Session) {
	s.Install(deps)
	app, _ := s.StringVar("app")
	s.PushDir(app)
	s.Upload(app, "")
	g := governator.New(s)
	__ = g.Stop(app)
	s.Sync(dirs...)
	s.UploadTemplate("app.conf", "")
	g.AddService(app, nil, app)
	g.Start(app)
	n, _ := nginx.New(s)
	port, _ := s.StringVar("port")
	n.AddServer(app, "127.0.0.1:"+port)
	n.AddSite(app, wb.Template("conf/nginx/site.conf"))
	n.StartSite(app)
}
Beispiel #3
0
func Clean(s *wb.Session) {
	s.LRun("gondola clean")
}