mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-22 06:55:20 +00:00
default run mode value updated dev
This commit is contained in:
@@ -21,7 +21,7 @@ This allows it to be deployed and run on a machine that lacks a Go installation.
|
|||||||
The run mode is used to select which set of app.conf configuration should
|
The run mode is used to select which set of app.conf configuration should
|
||||||
apply and may be used to determine logic in the application itself.
|
apply and may be used to determine logic in the application itself.
|
||||||
|
|
||||||
Run mode defaults to "prod".
|
Run mode defaults to "dev".
|
||||||
|
|
||||||
WARNING: The target path will be completely deleted, if it already exists!
|
WARNING: The target path will be completely deleted, if it already exists!
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ func buildApp(args []string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
appImportPath, destPath, mode := args[0], args[1], "prod"
|
appImportPath, destPath, mode := args[0], args[1], "dev"
|
||||||
if len(args) >= 3 {
|
if len(args) >= 3 {
|
||||||
mode = args[2]
|
mode = args[2]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ This allows it to be deployed and run on a machine that lacks a Go installation.
|
|||||||
The run mode is used to select which set of app.conf configuration should
|
The run mode is used to select which set of app.conf configuration should
|
||||||
apply and may be used to determine logic in the application itself.
|
apply and may be used to determine logic in the application itself.
|
||||||
|
|
||||||
Run mode defaults to "prod".
|
Run mode defaults to "dev".
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ func packageApp(args []string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Determine the run mode.
|
// Determine the run mode.
|
||||||
mode := "prod"
|
mode := "dev"
|
||||||
if len(args) >= 2 {
|
if len(args) >= 2 {
|
||||||
mode = args[1]
|
mode = args[1]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user