mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-15 20:24:44 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2480171e5 | ||
|
|
d83d2d5891 | ||
|
|
55b736e588 | ||
|
|
8162ef3ed6 |
@@ -209,7 +209,7 @@ func NewHarness(c *model.CommandConfig, paths *model.RevelContainer, runMode str
|
||||
// Refresh method rebuilds the Revel application and run it on the given port.
|
||||
// called by the watcher.
|
||||
func (h *Harness) Refresh() (err *utils.SourceError) {
|
||||
t := time.Now();
|
||||
t := time.Now()
|
||||
fmt.Println("Change detected, recompiling")
|
||||
err = h.refresh()
|
||||
if err != nil && !h.ranOnce && h.useProxy {
|
||||
@@ -266,7 +266,7 @@ func (h *Harness) refresh() (err *utils.SourceError) {
|
||||
paths, _ = json.Marshal(h.app.PackagePathMap)
|
||||
}
|
||||
|
||||
runMode = fmt.Sprintf(`{"mode":"%s", "specialUseFlag":%v,"packagePathMap":%s}`, h.app.Paths.RunMode, h.config.Verbose[0], string(paths))
|
||||
runMode = fmt.Sprintf(`{"mode":"%s", "specialUseFlag":%v,"packagePathMap":%s}`, h.app.Paths.RunMode, h.config.GetVerbose(), string(paths))
|
||||
}
|
||||
|
||||
if err2 := h.app.Cmd(runMode).Start(h.config); err2 != nil {
|
||||
|
||||
@@ -6,7 +6,7 @@ package cmd
|
||||
|
||||
const (
|
||||
// Version current Revel version
|
||||
Version = "1.1.0"
|
||||
Version = "1.2.0-dev"
|
||||
|
||||
// BuildDate latest commit/release date
|
||||
BuildDate = "2022-04-11"
|
||||
|
||||
Reference in New Issue
Block a user