Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
913fbdb690 | |||
0505fa0a1a | |||
7bc4dc84df |
@ -21,7 +21,7 @@ import (
|
||||
func CmdNew(c *cli.Context) error {
|
||||
name := strings.TrimSpace(c.String("name"))
|
||||
domain := strings.TrimSpace(c.String("domain"))
|
||||
customProjectPath := strings.TrimSpace(c.String("project-path"))
|
||||
customProjectPath := strings.TrimSpace(c.String("custom-path"))
|
||||
projectRoot := conf.App.MustString("projects.root")
|
||||
sitesAvail := conf.App.MustString("nginx.sitesAvailable")
|
||||
sitesEnabled := conf.App.MustString("nginx.sitesEnabled")
|
||||
@ -29,7 +29,7 @@ func CmdNew(c *cli.Context) error {
|
||||
|
||||
projectFolder := filepath.Join(projectRoot, name)
|
||||
|
||||
if customProjectPath == "" {
|
||||
if customProjectPath != "" {
|
||||
projectFolder = customProjectPath
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ func Execute() {
|
||||
app := &cli.App{
|
||||
Name: "hoster",
|
||||
Usage: "Hoster",
|
||||
Version: "1.0.4",
|
||||
Version: "1.0.8",
|
||||
Commands: []*cli.Command{
|
||||
{
|
||||
Name: "new",
|
||||
@ -36,7 +36,6 @@ func Execute() {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "custom-path",
|
||||
Aliases: []string{"d"},
|
||||
Usage: "The path of the project. Defaults to ${projects.root}/${name}.",
|
||||
Required: false,
|
||||
},
|
||||
|
Reference in New Issue
Block a user