Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d99b6d0b81
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 0.557 kb
package main
import (
"fmt"
"github.com/hoisie/web"
"github.com/jmoiron/monet/app"
"github.com/jmoiron/monet/conf"
"github.com/jmoiron/monet/db"
"github.com/jmoiron/monet/gallery"
"github.com/jmoiron/monet/template"
)
func main() {
fmt.Printf("Using config %s\n", conf.Path)
template.Init(conf.Config.TemplatePaths)
fmt.Printf(conf.Config.String())
web.Config.StaticDir = conf.Config.StaticPath
// finished config
db.Connect()
gallery.AttachAdmin("/admin/")
app.AttachAdmin("/admin/")
app.Attach("/")
web.Run(conf.Config.HostString())
}
Jump to Line
Something went wrong with that request. Please try again.