This commit is contained in:
Jeevanandam M
2016-06-08 19:32:13 -07:00
parent 514b078c3d
commit 5a57eaa743
7 changed files with 106 additions and 71 deletions

View File

@@ -47,7 +47,7 @@ func runApp(args []string) {
revel.LoadMimeConfig()
// Determine the override port, if any.
port := revel.HttpPort
port := revel.HTTPPort
if len(args) == 3 {
var err error
if port, err = strconv.Atoi(args[2]); err != nil {
@@ -61,7 +61,7 @@ func runApp(args []string) {
// If the app is run in "watched" mode, use the harness to run it.
if revel.Config.BoolDefault("watch", true) && revel.Config.BoolDefault("watch.code", true) {
revel.TRACE.Println("Running in watched mode.")
revel.HttpPort = port
revel.HTTPPort = port
harness.NewHarness().Run() // Never returns.
}

View File

@@ -114,7 +114,7 @@ You can add it to a run mode configuration with the following line:
var (
testSuites []controllers.TestSuiteDesc
resp *http.Response
baseUrl = fmt.Sprintf("http://127.0.0.1:%d", revel.HttpPort)
baseUrl = fmt.Sprintf("http://127.0.0.1:%d", revel.HTTPPort)
)
for i := 0; ; i++ {
if resp, err = http.Get(baseUrl + "/@tests.list"); err == nil {