mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
revel/revel#1057 code improvements
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user