Skip to content

Commit

Permalink
Update depends.
Browse files Browse the repository at this point in the history
  • Loading branch information
liudng committed Jul 8, 2015
1 parent 5a75155 commit 89fe9cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Empty file added .gitignore
Empty file.
11 changes: 6 additions & 5 deletions application.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ type Host struct {
// Init
func (app *Application) Init(path string) {
// Load config file
rep := map[string]string{"{WorkingDir}": console.WorkingDir}
cfg := console.NewConfig(console.ConfigFile, path, rep)
cfg.Parse(app)
r := map[string]string{"{WorkingDir}": console.WorkingDir}
console.NewConfig(path).Replace(r).Parse(app)

// Default Listen
if app.Listen == "" {
Expand Down Expand Up @@ -110,8 +109,10 @@ func (app *Application) Init(path string) {
app.Hosts[k] = v
}

log.Printf("%#v\n", app)
log.Printf("%#v\n", controllers)
//log.Printf("%#v\n", app)
console.Dump(app)
//log.Printf("%#v\n", controllers)
console.Dump(controllers)
}

// Load
Expand Down

0 comments on commit 89fe9cd

Please sign in to comment.