Skip to content

Commit

Permalink
Merge pull request #133 from hossted/fix-dc
Browse files Browse the repository at this point in the history
Cli fixes for access info path
  • Loading branch information
liorkesos committed Sep 3, 2024
2 parents 5289917 + 7ab633e commit 25f80b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hossted/service/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ var (
MIMIR_USERNAME = "-"
HOSSTED_API_URL = "-"
HOSSTED_AUTH_TOKEN = "-"
HOSSTED_CLIENT_ID = "-"
HOSSTED_AUTH_URL = "-"
HOSSTED_CLIENT_ID = "-"
///////////////////////////
HOSSTED_DEV_API_URL = "-"
MIMIR_DEV_URL = "-"
Expand Down
1 change: 1 addition & 0 deletions hossted/service/compose/activate_compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func ActivateCompose(composeFilePath string, develMode bool) error {
}
}

fmt.Println(osFilePath)
osData, err := setClusterInfo(osInfo, osFilePath)
if err != nil {
return err
Expand Down
6 changes: 2 additions & 4 deletions hossted/service/compose/reconcile_compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func setClusterInfo(osInfo OsInfo, osFilePath string) (OsInfo, error) {
return info, err
}

return osInfo, nil
return info, nil
}

func checkUUID(osFilePath string) (string, error) {
Expand Down Expand Up @@ -246,7 +246,7 @@ func sendComposeInfo(appFilePath string, osInfo OsInfo) error {
composeUrl := hosstedAPIUrl + "/compose/hosts"
containersUrl := hosstedAPIUrl + "/compose/containers"

access_info := getAccessInfo(osInfo.ProjectName)
access_info := getAccessInfo("/opt/" + osInfo.ProjectName + "/.env")

var data map[string]AppRequest
err = json.Unmarshal(composeInfo, &data)
Expand Down Expand Up @@ -415,8 +415,6 @@ func prepareComposeRequest(
return appsData, isComposeStateChange, err
}

fmt.Println(uniqueProjects)

// Create a slice of existing apps
existingApps := make(map[string]bool)
for app := range appsData {
Expand Down

0 comments on commit 25f80b5

Please sign in to comment.