2 Commits

Author SHA1 Message Date
pk
913fbdb690 Fix again... 2024-09-12 00:23:50 +02:00
pk
0505fa0a1a Fixes 2024-09-12 00:22:42 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -22,7 +22,7 @@ func Execute() {
app := &cli.App{
Name: "hoster",
Usage: "Hoster",
Version: "1.0.6",
Version: "1.0.8",
Commands: []*cli.Command{
{
Name: "new",